{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import pandas as pd\n",
    "import numpy as np\n",
    "import matplotlib.pyplot as plt\n",
    "from pymongo import MongoClient\n",
    "from pandas.io.json import json_normalize\n",
    "%matplotlib inline"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "conn = MongoClient(host='127.0.0.1', port=27017)  # 实例化MongoClient\n",
    "db = conn.get_database('maoyan')  # 连接到maoyan数据库\n",
    "\n",
    "maoyan = db.get_collection('maoyan') # 连接到集合maoyan\n",
    "mon_data = maoyan.find()  # 查询这个集合下的所有记录"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [],
   "source": [
    "data = json_normalize([comment for comment in mon_data])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "<class 'pandas.core.frame.DataFrame'>\n",
      "RangeIndex: 103716 entries, 0 to 103715\n",
      "Data columns (total 11 columns):\n",
      "_id           103716 non-null object\n",
      "content       103716 non-null object\n",
      "gender        103716 non-null int64\n",
      "id            103716 non-null int64\n",
      "nick          103716 non-null object\n",
      "replyCount    103716 non-null int64\n",
      "score         103716 non-null int64\n",
      "time          103716 non-null int64\n",
      "upCount       103716 non-null int64\n",
      "userId        103716 non-null int64\n",
      "userLevel     103716 non-null int64\n",
      "dtypes: int64(8), object(3)\n",
      "memory usage: 8.7+ MB\n"
     ]
    }
   ],
   "source": [
    "data.info()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>_id</th>\n",
       "      <th>content</th>\n",
       "      <th>gender</th>\n",
       "      <th>id</th>\n",
       "      <th>nick</th>\n",
       "      <th>replyCount</th>\n",
       "      <th>score</th>\n",
       "      <th>time</th>\n",
       "      <th>upCount</th>\n",
       "      <th>userId</th>\n",
       "      <th>userLevel</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>5c614a180d5a9ef918d0a0f5</td>\n",
       "      <td>很好震撼的很啊</td>\n",
       "      <td>1</td>\n",
       "      <td>1056560079</td>\n",
       "      <td>江生</td>\n",
       "      <td>0</td>\n",
       "      <td>9</td>\n",
       "      <td>1549879800000</td>\n",
       "      <td>0</td>\n",
       "      <td>201695017</td>\n",
       "      <td>3</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>5c614a180d5a9ef918d0a0f7</td>\n",
       "      <td>国产的科幻巅峰，丝毫不逊色好莱坞科幻大片，影响力就像星球大战一样，是国产科幻的开山之做，希望...</td>\n",
       "      <td>0</td>\n",
       "      <td>1056560077</td>\n",
       "      <td>Decadence</td>\n",
       "      <td>0</td>\n",
       "      <td>10</td>\n",
       "      <td>1549879800000</td>\n",
       "      <td>0</td>\n",
       "      <td>1020875871</td>\n",
       "      <td>4</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>5c614a180d5a9ef918d0a0f9</td>\n",
       "      <td>超级好看啊 户口帅的一批 我自己一个人看的 看得热血沸腾啊 爷爷死的时候真的哭死了</td>\n",
       "      <td>2</td>\n",
       "      <td>1056557517</td>\n",
       "      <td>暴走萝莉912</td>\n",
       "      <td>0</td>\n",
       "      <td>10</td>\n",
       "      <td>1549879800000</td>\n",
       "      <td>0</td>\n",
       "      <td>304299563</td>\n",
       "      <td>3</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>5c614a180d5a9ef918d0a0fb</td>\n",
       "      <td>保护生态环境，从我做</td>\n",
       "      <td>1</td>\n",
       "      <td>1056557516</td>\n",
       "      <td>*^_^*红尘逍遥</td>\n",
       "      <td>0</td>\n",
       "      <td>10</td>\n",
       "      <td>1549879800000</td>\n",
       "      <td>0</td>\n",
       "      <td>1548122992</td>\n",
       "      <td>2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>5c614a180d5a9ef918d0a0fd</td>\n",
       "      <td>超级好看，感动，特效好哒</td>\n",
       "      <td>2</td>\n",
       "      <td>1056560066</td>\n",
       "      <td>罗大大</td>\n",
       "      <td>0</td>\n",
       "      <td>9</td>\n",
       "      <td>1549879800000</td>\n",
       "      <td>0</td>\n",
       "      <td>897364142</td>\n",
       "      <td>2</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                        _id  \\\n",
       "0  5c614a180d5a9ef918d0a0f5   \n",
       "1  5c614a180d5a9ef918d0a0f7   \n",
       "2  5c614a180d5a9ef918d0a0f9   \n",
       "3  5c614a180d5a9ef918d0a0fb   \n",
       "4  5c614a180d5a9ef918d0a0fd   \n",
       "\n",
       "                                             content  gender          id  \\\n",
       "0                                            很好震撼的很啊       1  1056560079   \n",
       "1  国产的科幻巅峰，丝毫不逊色好莱坞科幻大片，影响力就像星球大战一样，是国产科幻的开山之做，希望...       0  1056560077   \n",
       "2          超级好看啊 户口帅的一批 我自己一个人看的 看得热血沸腾啊 爷爷死的时候真的哭死了       2  1056557517   \n",
       "3                                         保护生态环境，从我做       1  1056557516   \n",
       "4                                       超级好看，感动，特效好哒       2  1056560066   \n",
       "\n",
       "        nick  replyCount  score           time  upCount      userId  userLevel  \n",
       "0         江生           0      9  1549879800000        0   201695017          3  \n",
       "1  Decadence           0     10  1549879800000        0  1020875871          4  \n",
       "2    暴走萝莉912           0     10  1549879800000        0   304299563          3  \n",
       "3  *^_^*红尘逍遥           0     10  1549879800000        0  1548122992          2  \n",
       "4        罗大大           0      9  1549879800000        0   897364142          2  "
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>content</th>\n",
       "      <th>gender</th>\n",
       "      <th>id</th>\n",
       "      <th>nick</th>\n",
       "      <th>replyCount</th>\n",
       "      <th>score</th>\n",
       "      <th>time</th>\n",
       "      <th>upCount</th>\n",
       "      <th>userId</th>\n",
       "      <th>userLevel</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>time</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>2019-02-11 10:10:00</th>\n",
       "      <td>很好震撼的很啊</td>\n",
       "      <td>1</td>\n",
       "      <td>1056560079</td>\n",
       "      <td>江生</td>\n",
       "      <td>0</td>\n",
       "      <td>9</td>\n",
       "      <td>2019-02-11 10:10:00</td>\n",
       "      <td>0</td>\n",
       "      <td>201695017</td>\n",
       "      <td>3</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-02-11 10:10:00</th>\n",
       "      <td>国产的科幻巅峰，丝毫不逊色好莱坞科幻大片，影响力就像星球大战一样，是国产科幻的开山之做，希望...</td>\n",
       "      <td>0</td>\n",
       "      <td>1056560077</td>\n",
       "      <td>Decadence</td>\n",
       "      <td>0</td>\n",
       "      <td>10</td>\n",
       "      <td>2019-02-11 10:10:00</td>\n",
       "      <td>0</td>\n",
       "      <td>1020875871</td>\n",
       "      <td>4</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-02-11 10:10:00</th>\n",
       "      <td>超级好看啊 户口帅的一批 我自己一个人看的 看得热血沸腾啊 爷爷死的时候真的哭死了</td>\n",
       "      <td>2</td>\n",
       "      <td>1056557517</td>\n",
       "      <td>暴走萝莉912</td>\n",
       "      <td>0</td>\n",
       "      <td>10</td>\n",
       "      <td>2019-02-11 10:10:00</td>\n",
       "      <td>0</td>\n",
       "      <td>304299563</td>\n",
       "      <td>3</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-02-11 10:10:00</th>\n",
       "      <td>保护生态环境，从我做</td>\n",
       "      <td>1</td>\n",
       "      <td>1056557516</td>\n",
       "      <td>*^_^*红尘逍遥</td>\n",
       "      <td>0</td>\n",
       "      <td>10</td>\n",
       "      <td>2019-02-11 10:10:00</td>\n",
       "      <td>0</td>\n",
       "      <td>1548122992</td>\n",
       "      <td>2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-02-11 10:10:00</th>\n",
       "      <td>超级好看，感动，特效好哒</td>\n",
       "      <td>2</td>\n",
       "      <td>1056560066</td>\n",
       "      <td>罗大大</td>\n",
       "      <td>0</td>\n",
       "      <td>9</td>\n",
       "      <td>2019-02-11 10:10:00</td>\n",
       "      <td>0</td>\n",
       "      <td>897364142</td>\n",
       "      <td>2</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                                               content  \\\n",
       "time                                                                     \n",
       "2019-02-11 10:10:00                                            很好震撼的很啊   \n",
       "2019-02-11 10:10:00  国产的科幻巅峰，丝毫不逊色好莱坞科幻大片，影响力就像星球大战一样，是国产科幻的开山之做，希望...   \n",
       "2019-02-11 10:10:00          超级好看啊 户口帅的一批 我自己一个人看的 看得热血沸腾啊 爷爷死的时候真的哭死了   \n",
       "2019-02-11 10:10:00                                         保护生态环境，从我做   \n",
       "2019-02-11 10:10:00                                       超级好看，感动，特效好哒   \n",
       "\n",
       "                     gender          id       nick  replyCount  score  \\\n",
       "time                                                                    \n",
       "2019-02-11 10:10:00       1  1056560079         江生           0      9   \n",
       "2019-02-11 10:10:00       0  1056560077  Decadence           0     10   \n",
       "2019-02-11 10:10:00       2  1056557517    暴走萝莉912           0     10   \n",
       "2019-02-11 10:10:00       1  1056557516  *^_^*红尘逍遥           0     10   \n",
       "2019-02-11 10:10:00       2  1056560066        罗大大           0      9   \n",
       "\n",
       "                                   time  upCount      userId  userLevel  \n",
       "time                                                                     \n",
       "2019-02-11 10:10:00 2019-02-11 10:10:00        0   201695017          3  \n",
       "2019-02-11 10:10:00 2019-02-11 10:10:00        0  1020875871          4  \n",
       "2019-02-11 10:10:00 2019-02-11 10:10:00        0   304299563          3  \n",
       "2019-02-11 10:10:00 2019-02-11 10:10:00        0  1548122992          2  \n",
       "2019-02-11 10:10:00 2019-02-11 10:10:00        0   897364142          2  "
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 数据清洗\n",
    "data = data.drop(columns='_id')\n",
    "data = data.drop_duplicates(subset='userId')\n",
    "data['time'] = pd.to_datetime(data['time']/1000, unit='s')\n",
    "data = data[data['time']>=pd.to_datetime('2019-02-05 00:00:00')]\n",
    "data.set_index(data[\"time\"], inplace=True)\n",
    "data.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "<class 'pandas.core.frame.DataFrame'>\n",
      "DatetimeIndex: 102580 entries, 2019-02-11 10:10:00 to 2019-02-11 01:40:00\n",
      "Data columns (total 10 columns):\n",
      "content       102580 non-null object\n",
      "gender        102580 non-null int64\n",
      "id            102580 non-null int64\n",
      "nick          102580 non-null object\n",
      "replyCount    102580 non-null int64\n",
      "score         102580 non-null int64\n",
      "time          102580 non-null datetime64[ns]\n",
      "upCount       102580 non-null int64\n",
      "userId        102580 non-null int64\n",
      "userLevel     102580 non-null int64\n",
      "dtypes: datetime64[ns](1), int64(7), object(2)\n",
      "memory usage: 8.6+ MB\n"
     ]
    }
   ],
   "source": [
    "data.info()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### 一、数据详情\n",
    "- 共有102580条数据；\n",
    "- 包含字段：评论内容、性别、评论ID、评论者昵称、回复数量、评分、时间、点赞数量、评论者ID、评论者等级\n",
    "\n",
    "#### 二、问题\n",
    "1. 总体评价如何？\n",
    "2. 总体评价的时间走向如何？\n",
    "3. 高分的评价理由是什么？\n",
    "4. 低分的评价理由是什么？\n",
    "5. 低分的人群有哪些特征？（性别、等级）\n",
    "6. 低分跟哪位演员有关？"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##### 1. 总体评价如何？"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "9.241450575160851"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data['score'].mean()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts': '/nbextensions/echarts/echarts.min'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "    <div id=\"1790c47705774c8c9c356bca8327d2d3\" style=\"width:700px;height:400px;\"></div>\n",
       "\n",
       "\n",
       "<script>\n",
       "    require(['echarts'], function(echarts) {\n",
       "        \n",
       "var myChart_1790c47705774c8c9c356bca8327d2d3 = echarts.init(document.getElementById('1790c47705774c8c9c356bca8327d2d3'), null, {renderer: 'canvas'});\n",
       "var option_1790c47705774c8c9c356bca8327d2d3 = {\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"text\": \"\\u300a\\u6d41\\u6d6a\\u5730\\u7403\\u300b\\u5404\\u8bc4\\u5206\\u6570\\u91cf\",\n",
       "            \"subtext\": \"\",\n",
       "            \"left\": \"auto\",\n",
       "            \"top\": \"auto\",\n",
       "            \"textStyle\": {\n",
       "                \"color\": \"#000\",\n",
       "                \"fontSize\": 18\n",
       "            },\n",
       "            \"subtextStyle\": {\n",
       "                \"color\": \"#aaa\",\n",
       "                \"fontSize\": 12\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"toolbox\": {\n",
       "        \"show\": true,\n",
       "        \"orient\": \"vertical\",\n",
       "        \"left\": \"95%\",\n",
       "        \"top\": \"center\",\n",
       "        \"feature\": {\n",
       "            \"saveAsImage\": {\n",
       "                \"show\": true,\n",
       "                \"title\": \"\\u4e0b\\u8f7d\\u56fe\\u7247\"\n",
       "            },\n",
       "            \"restore\": {\n",
       "                \"show\": true\n",
       "            },\n",
       "            \"dataView\": {\n",
       "                \"show\": true\n",
       "            }\n",
       "        }\n",
       "    },\n",
       "    \"series_id\": 5904143,\n",
       "    \"tooltip\": {\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"formatter\": null,\n",
       "        \"textStyle\": {\n",
       "            \"color\": \"#fff\",\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"backgroundColor\": \"rgba(50,50,50,0.7)\",\n",
       "        \"borderColor\": \"#333\",\n",
       "        \"borderWidth\": 0\n",
       "    },\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"bar\",\n",
       "            \"name\": \"\",\n",
       "            \"data\": [\n",
       "                130.0,\n",
       "                2329.0,\n",
       "                429.0,\n",
       "                481.0,\n",
       "                359.0,\n",
       "                1549.0,\n",
       "                1343.0,\n",
       "                2478.0,\n",
       "                5810.0,\n",
       "                14427.0,\n",
       "                73245.0\n",
       "            ],\n",
       "            \"stack\": \"stack_5904143\",\n",
       "            \"barCategoryGap\": \"40%\",\n",
       "            \"label\": {\n",
       "                \"normal\": {\n",
       "                    \"show\": true,\n",
       "                    \"position\": \"top\",\n",
       "                    \"textStyle\": {\n",
       "                        \"color\": \"#000\",\n",
       "                        \"fontSize\": 12\n",
       "                    },\n",
       "                    \"formatter\": null\n",
       "                },\n",
       "                \"emphasis\": {\n",
       "                    \"show\": true,\n",
       "                    \"position\": null,\n",
       "                    \"textStyle\": {\n",
       "                        \"color\": \"#fff\",\n",
       "                        \"fontSize\": 12\n",
       "                    }\n",
       "                }\n",
       "            },\n",
       "            \"markPoint\": {\n",
       "                \"data\": []\n",
       "            },\n",
       "            \"markLine\": {\n",
       "                \"data\": []\n",
       "            },\n",
       "            \"seriesId\": 5904143\n",
       "        },\n",
       "        {\n",
       "            \"type\": \"line\",\n",
       "            \"name\": \"\",\n",
       "            \"symbol\": \"emptyCircle\",\n",
       "            \"symbolSize\": 4,\n",
       "            \"smooth\": true,\n",
       "            \"step\": false,\n",
       "            \"stack\": \"\",\n",
       "            \"showSymbol\": true,\n",
       "            \"data\": [\n",
       "                1130.0,\n",
       "                3329.0,\n",
       "                1429.0,\n",
       "                1481.0,\n",
       "                1359.0,\n",
       "                2549.0,\n",
       "                2343.0,\n",
       "                3478.0,\n",
       "                6810.0,\n",
       "                15427.0,\n",
       "                74245.0\n",
       "            ],\n",
       "            \"label\": {\n",
       "                \"normal\": {\n",
       "                    \"show\": false,\n",
       "                    \"position\": \"top\",\n",
       "                    \"textStyle\": {\n",
       "                        \"color\": \"#000\",\n",
       "                        \"fontSize\": 12\n",
       "                    },\n",
       "                    \"formatter\": null\n",
       "                },\n",
       "                \"emphasis\": {\n",
       "                    \"show\": true,\n",
       "                    \"position\": null,\n",
       "                    \"textStyle\": {\n",
       "                        \"color\": \"#fff\",\n",
       "                        \"fontSize\": 12\n",
       "                    }\n",
       "                }\n",
       "            },\n",
       "            \"lineStyle\": {\n",
       "                \"normal\": {\n",
       "                    \"width\": 1,\n",
       "                    \"opacity\": 1,\n",
       "                    \"curveness\": 0,\n",
       "                    \"type\": \"solid\",\n",
       "                    \"color\": null\n",
       "                }\n",
       "            },\n",
       "            \"areaStyle\": {\n",
       "                \"opacity\": 0,\n",
       "                \"color\": null\n",
       "            },\n",
       "            \"markPoint\": {\n",
       "                \"data\": []\n",
       "            },\n",
       "            \"markLine\": {\n",
       "                \"data\": []\n",
       "            },\n",
       "            \"seriesId\": 5904143,\n",
       "            \"xAxisIndex\": 0,\n",
       "            \"yAxisIndex\": 0\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [\n",
       "                \"\",\n",
       "                \"\"\n",
       "            ],\n",
       "            \"selectedMode\": \"multiple\",\n",
       "            \"show\": true,\n",
       "            \"left\": \"center\",\n",
       "            \"top\": \"top\",\n",
       "            \"orient\": \"horizontal\",\n",
       "            \"textStyle\": {\n",
       "                \"fontSize\": 18,\n",
       "                \"color\": \"#333\"\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"backgroundColor\": \"#fff\",\n",
       "    \"xAxis\": [\n",
       "        {\n",
       "            \"name\": \"\",\n",
       "            \"show\": true,\n",
       "            \"nameLocation\": \"middle\",\n",
       "            \"nameGap\": 25,\n",
       "            \"nameTextStyle\": {\n",
       "                \"fontSize\": 14\n",
       "            },\n",
       "            \"axisLabel\": {\n",
       "                \"interval\": \"auto\",\n",
       "                \"rotate\": 0,\n",
       "                \"margin\": 8,\n",
       "                \"textStyle\": {\n",
       "                    \"fontSize\": 18,\n",
       "                    \"color\": \"#000\"\n",
       "                }\n",
       "            },\n",
       "            \"axisTick\": {\n",
       "                \"alignWithLabel\": false\n",
       "            },\n",
       "            \"inverse\": false,\n",
       "            \"position\": null,\n",
       "            \"boundaryGap\": true,\n",
       "            \"min\": null,\n",
       "            \"max\": null,\n",
       "            \"data\": [\n",
       "                0.0,\n",
       "                1.0,\n",
       "                2.0,\n",
       "                3.0,\n",
       "                4.0,\n",
       "                5.0,\n",
       "                6.0,\n",
       "                7.0,\n",
       "                8.0,\n",
       "                9.0,\n",
       "                10.0\n",
       "            ],\n",
       "            \"type\": \"category\"\n",
       "        }\n",
       "    ],\n",
       "    \"yAxis\": [\n",
       "        {\n",
       "            \"name\": \"\",\n",
       "            \"show\": true,\n",
       "            \"nameLocation\": \"middle\",\n",
       "            \"nameGap\": 25,\n",
       "            \"nameTextStyle\": {\n",
       "                \"fontSize\": 14\n",
       "            },\n",
       "            \"axisLabel\": {\n",
       "                \"formatter\": \"{value} \",\n",
       "                \"rotate\": 0,\n",
       "                \"interval\": \"auto\",\n",
       "                \"margin\": 8,\n",
       "                \"textStyle\": {\n",
       "                    \"fontSize\": 18,\n",
       "                    \"color\": \"#000\"\n",
       "                }\n",
       "            },\n",
       "            \"axisTick\": {\n",
       "                \"alignWithLabel\": false\n",
       "            },\n",
       "            \"inverse\": false,\n",
       "            \"position\": null,\n",
       "            \"boundaryGap\": true,\n",
       "            \"min\": null,\n",
       "            \"max\": null,\n",
       "            \"splitLine\": {\n",
       "                \"show\": true\n",
       "            },\n",
       "            \"type\": \"value\"\n",
       "        }\n",
       "    ],\n",
       "    \"color\": [\n",
       "        \"#130f40\",\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\",\n",
       "        \"#f6f5ec\"\n",
       "    ]\n",
       "};\n",
       "myChart_1790c47705774c8c9c356bca8327d2d3.setOption(option_1790c47705774c8c9c356bca8327d2d3);\n",
       "\n",
       "    });\n",
       "</script>\n"
      ],
      "text/plain": [
       "<pyecharts.custom.overlap.Overlap at 0x111784da0>"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "from pyecharts import Bar\n",
    "from pyecharts import Line\n",
    "from pyecharts import Overlap\n",
    "\n",
    "score_total = data['score'].value_counts().sort_index()\n",
    "bar = Bar(\"《流浪地球》各评分数量\", width=700)\n",
    "line = Line(\"\", width=700)\n",
    "bar.add(\"\", score_total.index, score_total.values, is_stack=True, is_label_show=True,\n",
    "       bar_category_gap='40%', label_color = ['#130f40'],\n",
    "       legend_text_size=18,xaxis_label_textsize=18,yaxis_label_textsize=18)\n",
    "line.add(\"\", score_total.index, score_total.values+1000, is_smooth=True)\n",
    "\n",
    "overlap = Overlap(width=700)\n",
    "overlap.add(bar)\n",
    "overlap.add(line)\n",
    "\n",
    "overlap"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "3.6342366933125363"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 低分百分比\n",
    "score_total[:5].sum()/score_total.sum()*100"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "93.54650029245467"
      ]
     },
     "execution_count": 11,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 高分百分比\n",
    "score_total[7:].sum()/score_total.sum()*100"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "71.40280756482746"
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 满分百分比\n",
    "score_total[10:].sum()/score_total.sum()*100"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##### 2. 总体评价的时间走向如何？"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 40,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts': '/nbextensions/echarts/echarts.min'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "    <div id=\"66d705c224fb48cf969f8d1a706b26d3\" style=\"width:700px;height:400px;\"></div>\n",
       "\n",
       "\n",
       "<script>\n",
       "    require(['echarts'], function(echarts) {\n",
       "        \n",
       "var myChart_66d705c224fb48cf969f8d1a706b26d3 = echarts.init(document.getElementById('66d705c224fb48cf969f8d1a706b26d3'), null, {renderer: 'canvas'});\n",
       "var option_66d705c224fb48cf969f8d1a706b26d3 = {\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"text\": \"\\u300a\\u6d41\\u6d6a\\u5730\\u7403\\u300b\\u8bc4\\u5206\\u65f6\\u95f4\\u8d70\\u5411\",\n",
       "            \"subtext\": \"\",\n",
       "            \"left\": \"auto\",\n",
       "            \"top\": \"auto\",\n",
       "            \"textStyle\": {\n",
       "                \"color\": \"#000\",\n",
       "                \"fontSize\": 18\n",
       "            },\n",
       "            \"subtextStyle\": {\n",
       "                \"color\": \"#aaa\",\n",
       "                \"fontSize\": 12\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"toolbox\": {\n",
       "        \"show\": true,\n",
       "        \"orient\": \"vertical\",\n",
       "        \"left\": \"95%\",\n",
       "        \"top\": \"center\",\n",
       "        \"feature\": {\n",
       "            \"saveAsImage\": {\n",
       "                \"show\": true,\n",
       "                \"title\": \"\\u4e0b\\u8f7d\\u56fe\\u7247\"\n",
       "            },\n",
       "            \"restore\": {\n",
       "                \"show\": true\n",
       "            },\n",
       "            \"dataView\": {\n",
       "                \"show\": true\n",
       "            }\n",
       "        }\n",
       "    },\n",
       "    \"series_id\": 5955987,\n",
       "    \"tooltip\": {\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"formatter\": null,\n",
       "        \"textStyle\": {\n",
       "            \"color\": \"#fff\",\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"backgroundColor\": \"rgba(50,50,50,0.7)\",\n",
       "        \"borderColor\": \"#333\",\n",
       "        \"borderWidth\": 0\n",
       "    },\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"line\",\n",
       "            \"name\": \"\",\n",
       "            \"symbol\": \"emptyCircle\",\n",
       "            \"symbolSize\": 4,\n",
       "            \"smooth\": true,\n",
       "            \"step\": false,\n",
       "            \"stack\": \"\",\n",
       "            \"showSymbol\": true,\n",
       "            \"data\": [\n",
       "                8.761904761904763,\n",
       "                8.594202898550725,\n",
       "                9.288659793814434,\n",
       "                9.440677966101696,\n",
       "                9.427440633245382,\n",
       "                9.46,\n",
       "                9.367283950617283,\n",
       "                9.460885956644676,\n",
       "                9.401436552274541,\n",
       "                9.412162162162161,\n",
       "                9.357680722891565,\n",
       "                9.40339233038348,\n",
       "                9.390564578499614,\n",
       "                9.391891891891891,\n",
       "                9.363270777479892,\n",
       "                9.211393273850378,\n",
       "                9.133430021754895,\n",
       "                9.212660731948565,\n",
       "                9.331521739130435,\n",
       "                9.248520710059172,\n",
       "                9.397058823529411,\n",
       "                9.35820895522388,\n",
       "                9.16470588235294,\n",
       "                9.294416243654823,\n",
       "                9.154069767441861,\n",
       "                9.181818181818182,\n",
       "                9.430528375733855,\n",
       "                9.381147540983607,\n",
       "                9.496166484118291,\n",
       "                9.40531914893617,\n",
       "                9.401673640167363,\n",
       "                9.423698384201078,\n",
       "                9.369266055045872,\n",
       "                9.342412451361868,\n",
       "                9.274270196877122,\n",
       "                9.275167785234899,\n",
       "                9.24788298691301,\n",
       "                9.234012649332396,\n",
       "                9.119926199261993,\n",
       "                9.097486204782342,\n",
       "                8.984282907662083,\n",
       "                9.139826422372227,\n",
       "                9.00842105263158,\n",
       "                9.347058823529412,\n",
       "                8.977777777777778,\n",
       "                9.442857142857143,\n",
       "                8.892156862745098,\n",
       "                9.17142857142857,\n",
       "                9.05911330049261,\n",
       "                9.020872865275143,\n",
       "                9.003344481605351,\n",
       "                9.253164556962025,\n",
       "                9.352611940298507,\n",
       "                9.275964391691394,\n",
       "                9.341959334565619,\n",
       "                9.277969018932874,\n",
       "                9.053146853146853,\n",
       "                9.32126168224299,\n",
       "                9.274463007159904,\n",
       "                9.196782178217822,\n",
       "                9.25208913649025,\n",
       "                9.182883939038687,\n",
       "                9.22183908045977,\n",
       "                8.944632768361583,\n",
       "                8.91989319092123,\n",
       "                8.926190476190476,\n",
       "                9.152466367713005,\n",
       "                8.966666666666667,\n",
       "                9.346153846153847,\n",
       "                8.357142857142858,\n",
       "                8.862068965517242,\n",
       "                8.891304347826088,\n",
       "                8.808383233532934,\n",
       "                8.8,\n",
       "                9.049645390070921,\n",
       "                9.334975369458128,\n",
       "                9.311244979919678,\n",
       "                9.166666666666666,\n",
       "                9.25357873210634,\n",
       "                9.270106221547799,\n",
       "                9.369718309859154,\n",
       "                9.140155728587319,\n",
       "                9.158438576349024,\n",
       "                9.243488108720271,\n",
       "                9.165249088699879,\n",
       "                9.135788262370541,\n",
       "                9.238888888888889,\n",
       "                9.024971623155505,\n",
       "                9.17117117117117,\n",
       "                9.123142250530785,\n",
       "                9.0,\n",
       "                8.8,\n",
       "                9.222222222222221,\n",
       "                8.461538461538462,\n",
       "                9.121212121212121,\n",
       "                9.192982456140351,\n",
       "                9.039772727272727,\n",
       "                8.944206008583691,\n",
       "                8.876712328767123,\n",
       "                9.395886889460154,\n",
       "                9.273486430062631,\n",
       "                9.320610687022901,\n",
       "                9.385474860335195,\n",
       "                9.290115532734275,\n",
       "                9.256787330316742,\n",
       "                9.366369710467707,\n",
       "                9.164444444444445,\n",
       "                9.308323563892145,\n",
       "                9.163484486873509,\n",
       "                9.231638418079097,\n",
       "                9.10467706013363,\n",
       "                8.981069042316259,\n",
       "                9.0546875,\n",
       "                8.794270833333334,\n",
       "                8.994011976047904,\n",
       "                9.014285714285714,\n",
       "                9.11111111111111,\n",
       "                9.0,\n",
       "                8.73913043478261,\n",
       "                8.828282828282829,\n",
       "                9.223350253807107,\n",
       "                9.038732394366198,\n",
       "                9.32542372881356,\n",
       "                9.267139479905437,\n",
       "                9.39240506329114,\n",
       "                9.33085501858736,\n",
       "                9.265442404006677,\n",
       "                9.337431693989071,\n",
       "                9.336969696969698,\n",
       "                9.337416481069042,\n",
       "                9.224611708482676,\n",
       "                9.2989449003517,\n",
       "                9.144219308700835,\n",
       "                9.161764705882353,\n",
       "                9.255555555555556,\n",
       "                9.108045977011495,\n",
       "                9.07182320441989,\n",
       "                9.124653739612189,\n",
       "                8.867924528301886,\n",
       "                8.913793103448276,\n",
       "                9.416666666666666,\n",
       "                8.636363636363637,\n",
       "                8.375,\n",
       "                8.936,\n",
       "                9.004761904761905,\n",
       "                9.081927710843374,\n",
       "                9.139097744360901,\n",
       "                9.251891891891892,\n",
       "                9.242349048800662,\n",
       "                9.35058430717863,\n",
       "                9.326104417670683,\n",
       "                9.373901284651792,\n",
       "                9.319951338199514,\n",
       "                9.291131855309219,\n",
       "                9.179133858267717\n",
       "            ],\n",
       "            \"label\": {\n",
       "                \"normal\": {\n",
       "                    \"show\": false,\n",
       "                    \"position\": \"top\",\n",
       "                    \"textStyle\": {\n",
       "                        \"color\": \"#000\",\n",
       "                        \"fontSize\": 12\n",
       "                    },\n",
       "                    \"formatter\": null\n",
       "                },\n",
       "                \"emphasis\": {\n",
       "                    \"show\": true,\n",
       "                    \"position\": null,\n",
       "                    \"textStyle\": {\n",
       "                        \"color\": \"#fff\",\n",
       "                        \"fontSize\": 12\n",
       "                    }\n",
       "                }\n",
       "            },\n",
       "            \"lineStyle\": {\n",
       "                \"normal\": {\n",
       "                    \"width\": 1,\n",
       "                    \"opacity\": 1,\n",
       "                    \"curveness\": 0,\n",
       "                    \"type\": \"solid\",\n",
       "                    \"color\": null\n",
       "                }\n",
       "            },\n",
       "            \"areaStyle\": {\n",
       "                \"opacity\": 0,\n",
       "                \"color\": null\n",
       "            },\n",
       "            \"markPoint\": {\n",
       "                \"data\": []\n",
       "            },\n",
       "            \"markLine\": {\n",
       "                \"data\": []\n",
       "            },\n",
       "            \"seriesId\": 5955987\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [\n",
       "                \"\"\n",
       "            ],\n",
       "            \"selectedMode\": \"multiple\",\n",
       "            \"show\": true,\n",
       "            \"left\": \"center\",\n",
       "            \"top\": \"top\",\n",
       "            \"orient\": \"horizontal\",\n",
       "            \"textStyle\": {\n",
       "                \"fontSize\": 18,\n",
       "                \"color\": \"#333\"\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"backgroundColor\": \"#fff\",\n",
       "    \"xAxis\": [\n",
       "        {\n",
       "            \"name\": \"\",\n",
       "            \"show\": true,\n",
       "            \"nameLocation\": \"middle\",\n",
       "            \"nameGap\": 25,\n",
       "            \"nameTextStyle\": {\n",
       "                \"fontSize\": 14\n",
       "            },\n",
       "            \"axisLabel\": {\n",
       "                \"interval\": \"auto\",\n",
       "                \"rotate\": 20,\n",
       "                \"margin\": 8,\n",
       "                \"textStyle\": {\n",
       "                    \"fontSize\": 18,\n",
       "                    \"color\": \"#000\"\n",
       "                }\n",
       "            },\n",
       "            \"axisTick\": {\n",
       "                \"alignWithLabel\": false\n",
       "            },\n",
       "            \"inverse\": false,\n",
       "            \"position\": null,\n",
       "            \"boundaryGap\": true,\n",
       "            \"min\": null,\n",
       "            \"max\": null,\n",
       "            \"data\": [\n",
       "                \"2019-02-05\",\n",
       "                \"2019-02-05\",\n",
       "                \"2019-02-05\",\n",
       "                \"2019-02-05\",\n",
       "                \"2019-02-05\",\n",
       "                \"2019-02-05\",\n",
       "                \"2019-02-05\",\n",
       "                \"2019-02-05\",\n",
       "                \"2019-02-05\",\n",
       "                \"2019-02-05\",\n",
       "                \"2019-02-05\",\n",
       "                \"2019-02-05\",\n",
       "                \"2019-02-05\",\n",
       "                \"2019-02-05\",\n",
       "                \"2019-02-05\",\n",
       "                \"2019-02-05\",\n",
       "                \"2019-02-05\",\n",
       "                \"2019-02-05\",\n",
       "                \"2019-02-05\",\n",
       "                \"2019-02-05\",\n",
       "                \"2019-02-05\",\n",
       "                \"2019-02-05\",\n",
       "                \"2019-02-05\",\n",
       "                \"2019-02-05\",\n",
       "                \"2019-02-06\",\n",
       "                \"2019-02-06\",\n",
       "                \"2019-02-06\",\n",
       "                \"2019-02-06\",\n",
       "                \"2019-02-06\",\n",
       "                \"2019-02-06\",\n",
       "                \"2019-02-06\",\n",
       "                \"2019-02-06\",\n",
       "                \"2019-02-06\",\n",
       "                \"2019-02-06\",\n",
       "                \"2019-02-06\",\n",
       "                \"2019-02-06\",\n",
       "                \"2019-02-06\",\n",
       "                \"2019-02-06\",\n",
       "                \"2019-02-06\",\n",
       "                \"2019-02-06\",\n",
       "                \"2019-02-06\",\n",
       "                \"2019-02-06\",\n",
       "                \"2019-02-06\",\n",
       "                \"2019-02-06\",\n",
       "                \"2019-02-06\",\n",
       "                \"2019-02-06\",\n",
       "                \"2019-02-06\",\n",
       "                \"2019-02-06\",\n",
       "                \"2019-02-07\",\n",
       "                \"2019-02-07\",\n",
       "                \"2019-02-07\",\n",
       "                \"2019-02-07\",\n",
       "                \"2019-02-07\",\n",
       "                \"2019-02-07\",\n",
       "                \"2019-02-07\",\n",
       "                \"2019-02-07\",\n",
       "                \"2019-02-07\",\n",
       "                \"2019-02-07\",\n",
       "                \"2019-02-07\",\n",
       "                \"2019-02-07\",\n",
       "                \"2019-02-07\",\n",
       "                \"2019-02-07\",\n",
       "                \"2019-02-07\",\n",
       "                \"2019-02-07\",\n",
       "                \"2019-02-07\",\n",
       "                \"2019-02-07\",\n",
       "                \"2019-02-07\",\n",
       "                \"2019-02-07\",\n",
       "                \"2019-02-07\",\n",
       "                \"2019-02-07\",\n",
       "                \"2019-02-07\",\n",
       "                \"2019-02-07\",\n",
       "                \"2019-02-08\",\n",
       "                \"2019-02-08\",\n",
       "                \"2019-02-08\",\n",
       "                \"2019-02-08\",\n",
       "                \"2019-02-08\",\n",
       "                \"2019-02-08\",\n",
       "                \"2019-02-08\",\n",
       "                \"2019-02-08\",\n",
       "                \"2019-02-08\",\n",
       "                \"2019-02-08\",\n",
       "                \"2019-02-08\",\n",
       "                \"2019-02-08\",\n",
       "                \"2019-02-08\",\n",
       "                \"2019-02-08\",\n",
       "                \"2019-02-08\",\n",
       "                \"2019-02-08\",\n",
       "                \"2019-02-08\",\n",
       "                \"2019-02-08\",\n",
       "                \"2019-02-08\",\n",
       "                \"2019-02-08\",\n",
       "                \"2019-02-08\",\n",
       "                \"2019-02-08\",\n",
       "                \"2019-02-08\",\n",
       "                \"2019-02-08\",\n",
       "                \"2019-02-09\",\n",
       "                \"2019-02-09\",\n",
       "                \"2019-02-09\",\n",
       "                \"2019-02-09\",\n",
       "                \"2019-02-09\",\n",
       "                \"2019-02-09\",\n",
       "                \"2019-02-09\",\n",
       "                \"2019-02-09\",\n",
       "                \"2019-02-09\",\n",
       "                \"2019-02-09\",\n",
       "                \"2019-02-09\",\n",
       "                \"2019-02-09\",\n",
       "                \"2019-02-09\",\n",
       "                \"2019-02-09\",\n",
       "                \"2019-02-09\",\n",
       "                \"2019-02-09\",\n",
       "                \"2019-02-09\",\n",
       "                \"2019-02-09\",\n",
       "                \"2019-02-09\",\n",
       "                \"2019-02-09\",\n",
       "                \"2019-02-09\",\n",
       "                \"2019-02-09\",\n",
       "                \"2019-02-09\",\n",
       "                \"2019-02-09\",\n",
       "                \"2019-02-10\",\n",
       "                \"2019-02-10\",\n",
       "                \"2019-02-10\",\n",
       "                \"2019-02-10\",\n",
       "                \"2019-02-10\",\n",
       "                \"2019-02-10\",\n",
       "                \"2019-02-10\",\n",
       "                \"2019-02-10\",\n",
       "                \"2019-02-10\",\n",
       "                \"2019-02-10\",\n",
       "                \"2019-02-10\",\n",
       "                \"2019-02-10\",\n",
       "                \"2019-02-10\",\n",
       "                \"2019-02-10\",\n",
       "                \"2019-02-10\",\n",
       "                \"2019-02-10\",\n",
       "                \"2019-02-10\",\n",
       "                \"2019-02-10\",\n",
       "                \"2019-02-10\",\n",
       "                \"2019-02-10\",\n",
       "                \"2019-02-10\",\n",
       "                \"2019-02-10\",\n",
       "                \"2019-02-10\",\n",
       "                \"2019-02-10\",\n",
       "                \"2019-02-11\",\n",
       "                \"2019-02-11\",\n",
       "                \"2019-02-11\",\n",
       "                \"2019-02-11\",\n",
       "                \"2019-02-11\",\n",
       "                \"2019-02-11\",\n",
       "                \"2019-02-11\",\n",
       "                \"2019-02-11\",\n",
       "                \"2019-02-11\",\n",
       "                \"2019-02-11\",\n",
       "                \"2019-02-11\"\n",
       "            ],\n",
       "            \"type\": \"category\"\n",
       "        }\n",
       "    ],\n",
       "    \"yAxis\": [\n",
       "        {\n",
       "            \"name\": \"\",\n",
       "            \"show\": true,\n",
       "            \"nameLocation\": \"middle\",\n",
       "            \"nameGap\": 25,\n",
       "            \"nameTextStyle\": {\n",
       "                \"fontSize\": 14\n",
       "            },\n",
       "            \"axisLabel\": {\n",
       "                \"formatter\": \"{value} \",\n",
       "                \"rotate\": 0,\n",
       "                \"interval\": \"auto\",\n",
       "                \"margin\": 8,\n",
       "                \"textStyle\": {\n",
       "                    \"fontSize\": 18,\n",
       "                    \"color\": \"#000\"\n",
       "                }\n",
       "            },\n",
       "            \"axisTick\": {\n",
       "                \"alignWithLabel\": false\n",
       "            },\n",
       "            \"inverse\": false,\n",
       "            \"position\": null,\n",
       "            \"boundaryGap\": true,\n",
       "            \"min\": 8,\n",
       "            \"max\": null,\n",
       "            \"splitLine\": {\n",
       "                \"show\": true\n",
       "            },\n",
       "            \"type\": \"value\"\n",
       "        }\n",
       "    ],\n",
       "    \"color\": [\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\",\n",
       "        \"#f6f5ec\"\n",
       "    ]\n",
       "};\n",
       "myChart_66d705c224fb48cf969f8d1a706b26d3.setOption(option_66d705c224fb48cf969f8d1a706b26d3);\n",
       "\n",
       "    });\n",
       "</script>\n"
      ],
      "text/plain": [
       "<pyecharts.charts.line.Line at 0x11081d978>"
      ]
     },
     "execution_count": 40,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "score_by_time = data['score'].resample('H').mean()\n",
    "line = Line(\"《流浪地球》平均评分时间走向\", width=700)\n",
    "line.add(\"\", score_by_time.index.date, score_by_time.values, is_smooth=True,\n",
    "         legend_text_size=18,xaxis_label_textsize=18,yaxis_label_textsize=18,\n",
    "         xaxis_rotate=20, yaxis_min=8)\n",
    "line"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 48,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "time\n",
       "2019-02-07 21:00:00    8.357143\n",
       "2019-02-10 22:00:00    8.375000\n",
       "2019-02-08 21:00:00    8.461538\n",
       "2019-02-05 01:00:00    8.594203\n",
       "2019-02-10 21:00:00    8.636364\n",
       "2019-02-09 22:00:00    8.739130\n",
       "Name: score, dtype: float64"
      ]
     },
     "execution_count": 48,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "score_by_time.nsmallest(6)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##### 3. 高分的评价理由是什么？"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 103,
   "metadata": {},
   "outputs": [],
   "source": [
    "import jieba\n",
    "from collections import Counter\n",
    "from pyecharts import WordCloud\n",
    "\n",
    "jieba.add_word('屈楚萧')\n",
    "jieba.add_word('刘启')\n",
    "jieba.add_word('吴京')\n",
    "jieba.add_word('刘培强')\n",
    "jieba.add_word('李光洁')\n",
    "jieba.add_word('王磊')\n",
    "jieba.add_word('吴孟达')\n",
    "jieba.add_word('达叔')\n",
    "jieba.add_word('韩子昂')\n",
    "jieba.add_word('赵今麦')\n",
    "jieba.add_word('韩朵朵')\n",
    "\n",
    "swords = [x.strip() for x in open ('stopwords.txt')]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 132,
   "metadata": {},
   "outputs": [],
   "source": [
    "def plot_word_cloud(data, swords):\n",
    "    text = ''.join(data['content'])\n",
    "    words = list(jieba.cut(text))\n",
    "    ex_sw_words = []\n",
    "    for word in words:\n",
    "        if len(word)>1 and (word not in swords):\n",
    "            ex_sw_words.append(word)\n",
    "    c = Counter()\n",
    "    c = Counter(ex_sw_words)\n",
    "    wc_data = pd.DataFrame({'word':list(c.keys()), 'counts':list(c.values())}).sort_values(by='counts', ascending=False).head(100)\n",
    "    wordcloud = WordCloud(width=1300, height=620)\n",
    "    wordcloud.add(\"\", wc_data['word'], wc_data['counts'], word_size_range=[20, 100])\n",
    "    return wordcloud"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 145,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts': '/nbextensions/echarts/echarts.min', 'wordcloud': '/nbextensions/echarts/echarts-wordcloud.min'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "    <div id=\"3662f3d7a3d74e678ffdea86f9183793\" style=\"width:1300px;height:620px;\"></div>\n",
       "\n",
       "\n",
       "<script>\n",
       "    require(['echarts', 'wordcloud'], function(echarts) {\n",
       "        \n",
       "var myChart_3662f3d7a3d74e678ffdea86f9183793 = echarts.init(document.getElementById('3662f3d7a3d74e678ffdea86f9183793'), null, {renderer: 'canvas'});\n",
       "var option_3662f3d7a3d74e678ffdea86f9183793 = {\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"text\": \"\",\n",
       "            \"subtext\": \"\",\n",
       "            \"left\": \"auto\",\n",
       "            \"top\": \"auto\",\n",
       "            \"textStyle\": {\n",
       "                \"color\": \"#000\",\n",
       "                \"fontSize\": 18\n",
       "            },\n",
       "            \"subtextStyle\": {\n",
       "                \"color\": \"#aaa\",\n",
       "                \"fontSize\": 12\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"toolbox\": {\n",
       "        \"show\": true,\n",
       "        \"orient\": \"vertical\",\n",
       "        \"left\": \"95%\",\n",
       "        \"top\": \"center\",\n",
       "        \"feature\": {\n",
       "            \"saveAsImage\": {\n",
       "                \"show\": true,\n",
       "                \"title\": \"\\u4e0b\\u8f7d\\u56fe\\u7247\"\n",
       "            },\n",
       "            \"restore\": {\n",
       "                \"show\": true\n",
       "            },\n",
       "            \"dataView\": {\n",
       "                \"show\": true\n",
       "            }\n",
       "        }\n",
       "    },\n",
       "    \"series_id\": 3511608,\n",
       "    \"tooltip\": {\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"formatter\": null,\n",
       "        \"textStyle\": {\n",
       "            \"color\": \"#fff\",\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"backgroundColor\": \"rgba(50,50,50,0.7)\",\n",
       "        \"borderColor\": \"#333\",\n",
       "        \"borderWidth\": 0\n",
       "    },\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"wordCloud\",\n",
       "            \"name\": \"\",\n",
       "            \"shape\": \"circle\",\n",
       "            \"rotationRange\": [\n",
       "                -90,\n",
       "                90\n",
       "            ],\n",
       "            \"rotationStep\": 45,\n",
       "            \"girdSize\": 20,\n",
       "            \"sizeRange\": [\n",
       "                20,\n",
       "                100\n",
       "            ],\n",
       "            \"data\": [\n",
       "                {\n",
       "                    \"name\": \"\\u597d\\u770b\",\n",
       "                    \"value\": 27059,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(86,123,143)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e2d\\u56fd\",\n",
       "                    \"value\": 25135,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(153,93,34)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u7535\\u5f71\",\n",
       "                    \"value\": 19541,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(155,158,117)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e0d\\u9519\",\n",
       "                    \"value\": 14785,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(48,159,97)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u7279\\u6548\",\n",
       "                    \"value\": 14575,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(129,136,60)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u79d1\\u5e7b\",\n",
       "                    \"value\": 13728,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(17,118,102)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u79d1\\u5e7b\\u7247\",\n",
       "                    \"value\": 11800,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(67,52,123)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u56fd\\u4ea7\",\n",
       "                    \"value\": 11194,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(41,40,37)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5730\\u7403\",\n",
       "                    \"value\": 10509,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(29,89,145)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5267\\u60c5\",\n",
       "                    \"value\": 9113,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(32,123,119)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u9707\\u64bc\",\n",
       "                    \"value\": 8993,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(58,66,84)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u79d1\\u5e7b\\u7535\\u5f71\",\n",
       "                    \"value\": 8103,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(118,29,57)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5927\\u7247\",\n",
       "                    \"value\": 7105,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(23,96,29)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5e0c\\u671b\",\n",
       "                    \"value\": 6411,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(136,81,102)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6d41\\u6d6a\",\n",
       "                    \"value\": 5313,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(107,96,73)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5434\\u4eac\",\n",
       "                    \"value\": 5011,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(13,128,17)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e00\\u90e8\",\n",
       "                    \"value\": 4886,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(114,75,56)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u503c\\u5f97\",\n",
       "                    \"value\": 4535,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(68,108,10)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u611f\\u52a8\",\n",
       "                    \"value\": 4191,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(29,83,86)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u611f\\u4eba\",\n",
       "                    \"value\": 4003,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(31,149,79)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6709\\u70b9\",\n",
       "                    \"value\": 3773,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(142,123,131)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u8fd9\\u90e8\",\n",
       "                    \"value\": 3684,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(126,52,5)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u652f\\u6301\",\n",
       "                    \"value\": 3626,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(49,64,55)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u597d\\u83b1\\u575e\",\n",
       "                    \"value\": 3480,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(152,72,34)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u503c\\u5f97\\u4e00\\u770b\",\n",
       "                    \"value\": 3446,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(18,29,140)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u8d85\\u7ea7\",\n",
       "                    \"value\": 3248,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(146,57,35)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5b8c\\u7f8e\",\n",
       "                    \"value\": 3220,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(113,133,52)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4eba\\u7c7b\",\n",
       "                    \"value\": 3192,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(36,53,129)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5f88\\u68d2\",\n",
       "                    \"value\": 3140,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(44,38,79)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u559c\\u6b22\",\n",
       "                    \"value\": 3099,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(1,30,73)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u63a8\\u8350\",\n",
       "                    \"value\": 3005,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(92,3,73)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u770b\\u5230\",\n",
       "                    \"value\": 2988,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(78,31,121)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u7279\\u522b\",\n",
       "                    \"value\": 2852,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(158,64,68)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5f71\\u7247\",\n",
       "                    \"value\": 2783,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(108,34,78)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u60c5\\u8282\",\n",
       "                    \"value\": 2539,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(154,71,48)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u671f\\u5f85\",\n",
       "                    \"value\": 2471,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(155,95,26)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u91cc\\u7a0b\\u7891\",\n",
       "                    \"value\": 2467,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(94,40,26)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6545\\u4e8b\",\n",
       "                    \"value\": 2457,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(13,154,149)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u52a0\\u6cb9\",\n",
       "                    \"value\": 2451,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(18,24,77)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6f14\\u5458\",\n",
       "                    \"value\": 2356,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(51,74,36)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u573a\\u9762\",\n",
       "                    \"value\": 2288,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(68,38,1)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6548\\u679c\",\n",
       "                    \"value\": 2223,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(71,95,143)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5df2\\u7ecf\",\n",
       "                    \"value\": 2053,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(26,76,106)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u7b2c\\u4e00\\u90e8\",\n",
       "                    \"value\": 2022,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(160,111,119)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6ee1\\u5206\",\n",
       "                    \"value\": 1888,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(53,104,134)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6f14\\u6280\",\n",
       "                    \"value\": 1883,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(119,56,42)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u7247\\u5b50\",\n",
       "                    \"value\": 1815,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(11,0,52)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u62ef\\u6551\",\n",
       "                    \"value\": 1775,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(116,28,102)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4f5c\\u54c1\",\n",
       "                    \"value\": 1761,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(96,142,15)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5236\\u4f5c\",\n",
       "                    \"value\": 1749,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(33,93,63)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u7f8e\\u56fd\",\n",
       "                    \"value\": 1684,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(27,124,105)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5218\\u6148\\u6b23\",\n",
       "                    \"value\": 1661,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(29,77,74)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u539f\\u8457\",\n",
       "                    \"value\": 1651,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(6,47,12)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u7cbe\\u5f69\",\n",
       "                    \"value\": 1632,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(67,90,20)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u7ec8\\u4e8e\",\n",
       "                    \"value\": 1616,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(126,24,83)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u770b\\u8fc7\",\n",
       "                    \"value\": 1611,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(55,29,3)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6bd4\\u8f83\",\n",
       "                    \"value\": 1577,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(85,117,88)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u753b\\u9762\",\n",
       "                    \"value\": 1525,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(52,2,10)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u56fd\\u4ea7\\u7535\\u5f71\",\n",
       "                    \"value\": 1519,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(154,21,99)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e4b\\u4f5c\",\n",
       "                    \"value\": 1501,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(117,121,150)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u786e\\u5b9e\",\n",
       "                    \"value\": 1484,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(146,82,14)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u62cd\\u51fa\",\n",
       "                    \"value\": 1448,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(106,144,7)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6700\\u597d\",\n",
       "                    \"value\": 1444,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(146,120,121)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5d1b\\u8d77\",\n",
       "                    \"value\": 1339,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(114,102,148)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5e94\\u8be5\",\n",
       "                    \"value\": 1318,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(124,7,144)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e16\\u754c\",\n",
       "                    \"value\": 1316,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(143,137,56)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u8fd9\\u662f\",\n",
       "                    \"value\": 1308,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(21,5,136)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u7d27\\u51d1\",\n",
       "                    \"value\": 1293,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(1,21,134)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5341\\u5206\",\n",
       "                    \"value\": 1274,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(89,16,69)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e09\\u4f53\",\n",
       "                    \"value\": 1270,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(1,4,67)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u8fd9\\u79cd\",\n",
       "                    \"value\": 1269,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(19,140,46)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u8fdb\\u6b65\",\n",
       "                    \"value\": 1264,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(125,107,99)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u717d\\u60c5\",\n",
       "                    \"value\": 1247,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(129,148,27)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5730\\u65b9\",\n",
       "                    \"value\": 1237,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(15,46,90)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u610f\\u4e49\",\n",
       "                    \"value\": 1235,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(50,132,142)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4ee5\\u540e\",\n",
       "                    \"value\": 1216,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(110,146,96)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u56fd\\u5185\",\n",
       "                    \"value\": 1211,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(155,77,108)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u826f\\u5fc3\",\n",
       "                    \"value\": 1204,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(156,16,20)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u7ec6\\u8282\",\n",
       "                    \"value\": 1197,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(95,51,39)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u8d8a\\u6765\\u8d8a\",\n",
       "                    \"value\": 1193,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(146,90,114)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5bfc\\u6f14\",\n",
       "                    \"value\": 1179,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(66,68,147)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u77e5\\u9053\",\n",
       "                    \"value\": 1179,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(15,28,133)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6cea\\u70b9\",\n",
       "                    \"value\": 1174,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(61,127,63)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u603b\\u4f53\",\n",
       "                    \"value\": 1174,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(13,108,11)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u89c2\\u770b\",\n",
       "                    \"value\": 1136,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(33,13,158)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5b8c\\u5168\",\n",
       "                    \"value\": 1126,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(75,120,96)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u672a\\u6765\",\n",
       "                    \"value\": 1126,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(7,15,83)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u9898\\u6750\",\n",
       "                    \"value\": 1116,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(91,6,157)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6574\\u4f53\",\n",
       "                    \"value\": 1113,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(112,42,133)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6728\\u661f\",\n",
       "                    \"value\": 1109,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(41,90,68)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u573a\\u666f\",\n",
       "                    \"value\": 1097,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(100,70,45)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u70b9\\u8d5e\",\n",
       "                    \"value\": 1087,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(137,35,122)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5c0f\\u8bf4\",\n",
       "                    \"value\": 1083,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(142,10,57)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4eba\\u7269\",\n",
       "                    \"value\": 1080,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(142,83,75)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e00\\u4e0b\",\n",
       "                    \"value\": 1067,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(65,84,30)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"10\",\n",
       "                    \"value\": 1042,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(154,31,74)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u771f\\u6b63\",\n",
       "                    \"value\": 1027,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(111,6,68)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u771f\\u5fc3\",\n",
       "                    \"value\": 1019,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(28,73,96)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e00\\u70b9\",\n",
       "                    \"value\": 1007,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(16,157,77)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u56fd\\u5916\",\n",
       "                    \"value\": 1006,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(118,133,104)\"\n",
       "                        }\n",
       "                    }\n",
       "                }\n",
       "            ]\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [],\n",
       "            \"selectedMode\": \"multiple\",\n",
       "            \"show\": true,\n",
       "            \"left\": \"center\",\n",
       "            \"top\": \"top\",\n",
       "            \"orient\": \"horizontal\",\n",
       "            \"textStyle\": {\n",
       "                \"fontSize\": 12,\n",
       "                \"color\": \"#333\"\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"backgroundColor\": \"#fff\",\n",
       "    \"color\": [\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\",\n",
       "        \"#f6f5ec\"\n",
       "    ]\n",
       "};\n",
       "myChart_3662f3d7a3d74e678ffdea86f9183793.setOption(option_3662f3d7a3d74e678ffdea86f9183793);\n",
       "\n",
       "    });\n",
       "</script>\n"
      ],
      "text/plain": [
       "<pyecharts.charts.wordcloud.WordCloud at 0x11279f5c0>"
      ]
     },
     "execution_count": 145,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 高分的评价\n",
    "plot_word_cloud(data=data[data['score']>6], swords=swords)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 146,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>content</th>\n",
       "      <th>gender</th>\n",
       "      <th>id</th>\n",
       "      <th>nick</th>\n",
       "      <th>replyCount</th>\n",
       "      <th>score</th>\n",
       "      <th>time</th>\n",
       "      <th>upCount</th>\n",
       "      <th>userId</th>\n",
       "      <th>userLevel</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>time</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>2019-02-05 00:02:00</th>\n",
       "      <td>为什么没有7星，8星？完美已经不足以诠释这部电影的出色！感动，全程捏着拳头看完。叙事不拖沓，...</td>\n",
       "      <td>1</td>\n",
       "      <td>1053375466</td>\n",
       "      <td>奇异果Grissom</td>\n",
       "      <td>271</td>\n",
       "      <td>10</td>\n",
       "      <td>2019-02-05 00:02:00</td>\n",
       "      <td>5627</td>\n",
       "      <td>681463650</td>\n",
       "      <td>3</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-02-05 11:28:00</th>\n",
       "      <td>在学校看了《流浪地球》的点映！除了电影情节、在现场看到了大刘老师！我更难忘的是郭帆导演在现场...</td>\n",
       "      <td>2</td>\n",
       "      <td>1052407417</td>\n",
       "      <td>Hope And Legacy</td>\n",
       "      <td>108</td>\n",
       "      <td>10</td>\n",
       "      <td>2019-02-05 11:28:00</td>\n",
       "      <td>3838</td>\n",
       "      <td>1812991790</td>\n",
       "      <td>4</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-02-07 09:16:00</th>\n",
       "      <td>10分！太棒了！三次掉泪，父爱如山啊。40年前《星球大战》横空出世，好莱坞工业绿魔就此诞生；...</td>\n",
       "      <td>1</td>\n",
       "      <td>1054132930</td>\n",
       "      <td>CHAOSAY</td>\n",
       "      <td>29</td>\n",
       "      <td>10</td>\n",
       "      <td>2019-02-07 09:16:00</td>\n",
       "      <td>280</td>\n",
       "      <td>9693997</td>\n",
       "      <td>4</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-02-05 14:56:00</th>\n",
       "      <td>超过预期。《流浪地球》的确开启了中国科幻片和灾难片的新纪元，无论是在哪一坐标中进行比对。虽然...</td>\n",
       "      <td>1</td>\n",
       "      <td>1053946211</td>\n",
       "      <td>徐若风</td>\n",
       "      <td>4</td>\n",
       "      <td>9</td>\n",
       "      <td>2019-02-05 14:56:00</td>\n",
       "      <td>224</td>\n",
       "      <td>116677026</td>\n",
       "      <td>4</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-02-06 17:48:00</th>\n",
       "      <td>这场浩浩汤汤的太阳系“春运”燃情又暖心。父子情，战友情，人类与人工智能的情感与理智的抉择，电...</td>\n",
       "      <td>1</td>\n",
       "      <td>1054564832</td>\n",
       "      <td>电影大指南</td>\n",
       "      <td>12</td>\n",
       "      <td>10</td>\n",
       "      <td>2019-02-06 17:48:00</td>\n",
       "      <td>207</td>\n",
       "      <td>272340441</td>\n",
       "      <td>4</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-02-05 11:01:00</th>\n",
       "      <td>中国终于有自己拿的出手的科幻片了!\\n特效OK，剧情OK，没有大牌明星但全部演技都算得上OK...</td>\n",
       "      <td>0</td>\n",
       "      <td>1053741717</td>\n",
       "      <td>shadownihil</td>\n",
       "      <td>20</td>\n",
       "      <td>10</td>\n",
       "      <td>2019-02-05 11:01:00</td>\n",
       "      <td>201</td>\n",
       "      <td>8208177</td>\n",
       "      <td>4</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-02-09 02:04:00</th>\n",
       "      <td>从故事层面，本片以刘慈欣科幻小说作为基底，剧本改编非常的扎实，不仅极具想象力，而且也涉及到很...</td>\n",
       "      <td>1</td>\n",
       "      <td>1055541594</td>\n",
       "      <td>娱评天下</td>\n",
       "      <td>9</td>\n",
       "      <td>10</td>\n",
       "      <td>2019-02-09 02:04:00</td>\n",
       "      <td>184</td>\n",
       "      <td>172967358</td>\n",
       "      <td>4</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-02-05 13:03:00</th>\n",
       "      <td>剧作短板，特效完美，演员优秀，逻辑还是完全经不起推销。地球离太阳最后的距离还不得冻成一个冰球...</td>\n",
       "      <td>2</td>\n",
       "      <td>1053840774</td>\n",
       "      <td>刘小黛</td>\n",
       "      <td>194</td>\n",
       "      <td>7</td>\n",
       "      <td>2019-02-05 13:03:00</td>\n",
       "      <td>174</td>\n",
       "      <td>12695322</td>\n",
       "      <td>3</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-02-05 14:44:00</th>\n",
       "      <td>前部分虽有不足，但特效是超出预期，后劲较足，到了中后部分有两个地方感动到我，刘培强实现预言，...</td>\n",
       "      <td>2</td>\n",
       "      <td>1053940077</td>\n",
       "      <td>JuliaFanl</td>\n",
       "      <td>6</td>\n",
       "      <td>8</td>\n",
       "      <td>2019-02-05 14:44:00</td>\n",
       "      <td>172</td>\n",
       "      <td>227360759</td>\n",
       "      <td>5</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-02-07 05:40:00</th>\n",
       "      <td>在电影院看到的预告片，希望早日上映</td>\n",
       "      <td>1</td>\n",
       "      <td>134074136</td>\n",
       "      <td>纸牌巫</td>\n",
       "      <td>4</td>\n",
       "      <td>9</td>\n",
       "      <td>2019-02-07 05:40:00</td>\n",
       "      <td>110</td>\n",
       "      <td>418468642</td>\n",
       "      <td>3</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                                               content  \\\n",
       "time                                                                     \n",
       "2019-02-05 00:02:00  为什么没有7星，8星？完美已经不足以诠释这部电影的出色！感动，全程捏着拳头看完。叙事不拖沓，...   \n",
       "2019-02-05 11:28:00  在学校看了《流浪地球》的点映！除了电影情节、在现场看到了大刘老师！我更难忘的是郭帆导演在现场...   \n",
       "2019-02-07 09:16:00  10分！太棒了！三次掉泪，父爱如山啊。40年前《星球大战》横空出世，好莱坞工业绿魔就此诞生；...   \n",
       "2019-02-05 14:56:00  超过预期。《流浪地球》的确开启了中国科幻片和灾难片的新纪元，无论是在哪一坐标中进行比对。虽然...   \n",
       "2019-02-06 17:48:00  这场浩浩汤汤的太阳系“春运”燃情又暖心。父子情，战友情，人类与人工智能的情感与理智的抉择，电...   \n",
       "2019-02-05 11:01:00  中国终于有自己拿的出手的科幻片了!\\n特效OK，剧情OK，没有大牌明星但全部演技都算得上OK...   \n",
       "2019-02-09 02:04:00  从故事层面，本片以刘慈欣科幻小说作为基底，剧本改编非常的扎实，不仅极具想象力，而且也涉及到很...   \n",
       "2019-02-05 13:03:00  剧作短板，特效完美，演员优秀，逻辑还是完全经不起推销。地球离太阳最后的距离还不得冻成一个冰球...   \n",
       "2019-02-05 14:44:00  前部分虽有不足，但特效是超出预期，后劲较足，到了中后部分有两个地方感动到我，刘培强实现预言，...   \n",
       "2019-02-07 05:40:00                                  在电影院看到的预告片，希望早日上映   \n",
       "\n",
       "                     gender          id             nick  replyCount  score  \\\n",
       "time                                                                          \n",
       "2019-02-05 00:02:00       1  1053375466       奇异果Grissom         271     10   \n",
       "2019-02-05 11:28:00       2  1052407417  Hope And Legacy         108     10   \n",
       "2019-02-07 09:16:00       1  1054132930          CHAOSAY          29     10   \n",
       "2019-02-05 14:56:00       1  1053946211              徐若风           4      9   \n",
       "2019-02-06 17:48:00       1  1054564832            电影大指南          12     10   \n",
       "2019-02-05 11:01:00       0  1053741717      shadownihil          20     10   \n",
       "2019-02-09 02:04:00       1  1055541594             娱评天下           9     10   \n",
       "2019-02-05 13:03:00       2  1053840774              刘小黛         194      7   \n",
       "2019-02-05 14:44:00       2  1053940077        JuliaFanl           6      8   \n",
       "2019-02-07 05:40:00       1   134074136              纸牌巫           4      9   \n",
       "\n",
       "                                   time  upCount      userId  userLevel  \n",
       "time                                                                     \n",
       "2019-02-05 00:02:00 2019-02-05 00:02:00     5627   681463650          3  \n",
       "2019-02-05 11:28:00 2019-02-05 11:28:00     3838  1812991790          4  \n",
       "2019-02-07 09:16:00 2019-02-07 09:16:00      280     9693997          4  \n",
       "2019-02-05 14:56:00 2019-02-05 14:56:00      224   116677026          4  \n",
       "2019-02-06 17:48:00 2019-02-06 17:48:00      207   272340441          4  \n",
       "2019-02-05 11:01:00 2019-02-05 11:01:00      201     8208177          4  \n",
       "2019-02-09 02:04:00 2019-02-09 02:04:00      184   172967358          4  \n",
       "2019-02-05 13:03:00 2019-02-05 13:03:00      174    12695322          3  \n",
       "2019-02-05 14:44:00 2019-02-05 14:44:00      172   227360759          5  \n",
       "2019-02-07 05:40:00 2019-02-07 05:40:00      110   418468642          3  "
      ]
     },
     "execution_count": 146,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data[data['score']>6].nlargest(10, 'upCount')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 147,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "为什么没有7星，8星？完美已经不足以诠释这部电影的出色！感动，全程捏着拳头看完。叙事不拖沓，没有美式灾难片的个人英雄主义；宏大，还是宏大，全片充满各种想象；特效，丝毫不输好莱坞进口大片，甚至有些地方有过之而无不及。强烈建议，制作团队赶紧买了三体的版权吧，三年、五年甚至十年，我都等……\n",
      "\n",
      "在学校看了《流浪地球》的点映！除了电影情节、在现场看到了大刘老师！我更难忘的是郭帆导演在现场讲述的拍摄历程。真的真的太难了、也许有的人会一听国产科幻失去兴趣（真的，我身边哪怕看了很多书的同学、也有的会这样）这也不能怪任何人，毕竟大家看电影也都是想看到好看的、但是对于对科幻有兴趣的朋友，真的来看一看吧。我相信同为科幻迷并为科幻奋斗了这么多年的郭帆老师、绝对值得一张电影票\n",
      "    在看后\n",
      "太让人惊喜了，紧凑的节奏、多次的剧情反转、\n",
      "以及我们自己的价值观（如果是美国电影、大概最后会采用让一部分精英去往新家园，而我们中国的农耕文明注定了我们对土地对地球的情感无法割舍，在流浪地球背后正是这层含义吧\n",
      "\n",
      "10分！太棒了！三次掉泪，父爱如山啊。40年前《星球大战》横空出世，好莱坞工业绿魔就此诞生；而在40年后，《流浪地球》的上映，标志着中国科幻片就此诞生了。稳稳的拿下中国科幻片里程碑的称号了。再渺小的生命， 只要心有定力， 终会达到目的。要有牺牲小我，完成大我的勇气，小人物也是能拯救世界的。\n",
      "\n",
      "超过预期。《流浪地球》的确开启了中国科幻片和灾难片的新纪元，无论是在哪一坐标中进行比对。虽然我们并非是一直都没有所谓的科幻电影，但其中的大多都不是工业化、硬科幻的路子。\n",
      "《流浪地球》则在概念和执行上都达到了这一标准，特效技术、工整剧作、演员所合力营造出的氛围都很对。它代表的，是华语科幻电影的一个“关键转折点”。\n",
      "从原著角度而言，这是一个带着孤独感的故事。电影采用了小说中的整体设定，但故事与人物有了新的创造，且塑造了很好的主题，即对乡土情结的回归和牺牲精神。\n",
      "\n",
      "这场浩浩汤汤的太阳系“春运”燃情又暖心。父子情，战友情，人类与人工智能的情感与理智的抉择，电影赋予了刘慈欣原著更多没有的元素。张弛有度的节奏，两个小时的时间，心情随着剧情起伏。更别说激动人心，艳惊四座的特效画面了。看过《流浪地球》，我们终于可以理直气壮的说:国产电影终于有了真正的硬核科幻片！\n",
      "\n",
      "中国终于有自己拿的出手的科幻片了!\n",
      "特效OK，剧情OK，没有大牌明星但全部演技都算得上OK!\n",
      "有靠谱的团队我们还是可以拿的出手科幻片的!\n",
      "\n",
      "从故事层面，本片以刘慈欣科幻小说作为基底，剧本改编非常的扎实，不仅极具想象力，而且也涉及到很多专业知识，科技含量极高，算是对太空知识的普及，尤其是那几句“再见，太阳系”，透露出一种科幻电影难得的悲壮感、史诗气质。\n",
      "从视听效果上，本片也是足以比肩好莱坞科幻大片的饕餮盛宴。\n",
      "地球表面的天寒地冻，高耸入云的地球推进器，在冰天雪地行进的巨型卡车，太空中宏伟壮观的空间站，被冰雪覆盖的东方明珠塔，高楼电梯的惊险救援，地球大气被木星捕获的炫美一幕，还有最后点燃木星的震撼一刻……这些精彩炫目的场面，此前只能在国外大制作才能得见，如今我们中国电影也能完美呈现，这一跨越式的进步当然让观众心生自豪。\n",
      "\n",
      "剧作短板，特效完美，演员优秀，逻辑还是完全经不起推销。地球离太阳最后的距离还不得冻成一个冰球？一个女孩的中学获奖感言感动全人类，几个毛孩拯救地球，中国宇航员牺牲自我其他国家的都是休眠待毙，其实主题和战狼一模一样。原小说就是个体量不充沛的概念框架，改编影像困难。当然对整体工业水准有推进，什么时候能消除国别差异，关注个体，展露基本人性原生态，再搭配科幻质感，并且还能上映。\n",
      "\n",
      "前部分虽有不足，但特效是超出预期，后劲较足，到了中后部分有两个地方感动到我，刘培强实现预言，其次是王磊队长说出命令的瞬间。希望是什么？在绝境中不放弃任何一种可能，与其等待死亡，不如拼死一搏！长大又是什么？与家人共同经历之后理解彼此，打开心结。这次拯救地球集结了大家的力量，也见证了刘启的成长。流浪地球计划，让地球不再流浪。\n",
      "\n",
      "在电影院看到的预告片，希望早日上映\n",
      "\n"
     ]
    }
   ],
   "source": [
    "for i in data[data['score']>6].nlargest(10, 'upCount')['content']:\n",
    "    print(i+'\\n')"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##### 4. 低分的评价理由是什么？"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 148,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts': '/nbextensions/echarts/echarts.min', 'wordcloud': '/nbextensions/echarts/echarts-wordcloud.min'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "    <div id=\"5ff2689fc068415e8dec34b975fe21e9\" style=\"width:1300px;height:620px;\"></div>\n",
       "\n",
       "\n",
       "<script>\n",
       "    require(['echarts', 'wordcloud'], function(echarts) {\n",
       "        \n",
       "var myChart_5ff2689fc068415e8dec34b975fe21e9 = echarts.init(document.getElementById('5ff2689fc068415e8dec34b975fe21e9'), null, {renderer: 'canvas'});\n",
       "var option_5ff2689fc068415e8dec34b975fe21e9 = {\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"text\": \"\",\n",
       "            \"subtext\": \"\",\n",
       "            \"left\": \"auto\",\n",
       "            \"top\": \"auto\",\n",
       "            \"textStyle\": {\n",
       "                \"color\": \"#000\",\n",
       "                \"fontSize\": 18\n",
       "            },\n",
       "            \"subtextStyle\": {\n",
       "                \"color\": \"#aaa\",\n",
       "                \"fontSize\": 12\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"toolbox\": {\n",
       "        \"show\": true,\n",
       "        \"orient\": \"vertical\",\n",
       "        \"left\": \"95%\",\n",
       "        \"top\": \"center\",\n",
       "        \"feature\": {\n",
       "            \"saveAsImage\": {\n",
       "                \"show\": true,\n",
       "                \"title\": \"\\u4e0b\\u8f7d\\u56fe\\u7247\"\n",
       "            },\n",
       "            \"restore\": {\n",
       "                \"show\": true\n",
       "            },\n",
       "            \"dataView\": {\n",
       "                \"show\": true\n",
       "            }\n",
       "        }\n",
       "    },\n",
       "    \"series_id\": 8537549,\n",
       "    \"tooltip\": {\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"formatter\": null,\n",
       "        \"textStyle\": {\n",
       "            \"color\": \"#fff\",\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"backgroundColor\": \"rgba(50,50,50,0.7)\",\n",
       "        \"borderColor\": \"#333\",\n",
       "        \"borderWidth\": 0\n",
       "    },\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"wordCloud\",\n",
       "            \"name\": \"\",\n",
       "            \"shape\": \"circle\",\n",
       "            \"rotationRange\": [\n",
       "                -90,\n",
       "                90\n",
       "            ],\n",
       "            \"rotationStep\": 45,\n",
       "            \"girdSize\": 20,\n",
       "            \"sizeRange\": [\n",
       "                20,\n",
       "                100\n",
       "            ],\n",
       "            \"data\": [\n",
       "                {\n",
       "                    \"name\": \"\\u7535\\u5f71\",\n",
       "                    \"value\": 757,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(53,151,97)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5267\\u60c5\",\n",
       "                    \"value\": 636,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(118,35,29)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u597d\\u770b\",\n",
       "                    \"value\": 605,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(78,54,41)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u7279\\u6548\",\n",
       "                    \"value\": 601,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(21,141,142)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5730\\u7403\",\n",
       "                    \"value\": 363,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(7,98,71)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5434\\u4eac\",\n",
       "                    \"value\": 343,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(31,28,67)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5783\\u573e\",\n",
       "                    \"value\": 326,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(69,70,151)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u8bc4\\u5206\",\n",
       "                    \"value\": 254,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(15,9,18)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u77e5\\u9053\",\n",
       "                    \"value\": 244,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(36,127,141)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u7761\\u7740\",\n",
       "                    \"value\": 234,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(153,92,91)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e2d\\u56fd\",\n",
       "                    \"value\": 196,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(32,65,79)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u79d1\\u5e7b\",\n",
       "                    \"value\": 190,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(34,123,90)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u70c2\\u7247\",\n",
       "                    \"value\": 185,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(67,146,7)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u79d1\\u5e7b\\u7247\",\n",
       "                    \"value\": 177,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(50,93,35)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e00\\u70b9\",\n",
       "                    \"value\": 159,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(75,62,108)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u96be\\u770b\",\n",
       "                    \"value\": 154,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(109,140,134)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6f14\\u6280\",\n",
       "                    \"value\": 148,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(110,104,64)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u65e0\\u804a\",\n",
       "                    \"value\": 141,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(107,28,4)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u717d\\u60c5\",\n",
       "                    \"value\": 138,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(4,131,52)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5931\\u671b\",\n",
       "                    \"value\": 132,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(159,12,144)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5c34\\u5c2c\",\n",
       "                    \"value\": 132,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(67,149,118)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u62ef\\u6551\",\n",
       "                    \"value\": 126,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(142,73,113)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6f14\\u5458\",\n",
       "                    \"value\": 122,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(90,19,118)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e0d\\u9519\",\n",
       "                    \"value\": 120,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(57,128,83)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5b8c\\u5168\",\n",
       "                    \"value\": 119,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(14,140,74)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u56fd\\u4ea7\",\n",
       "                    \"value\": 117,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(15,59,0)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e00\\u90e8\",\n",
       "                    \"value\": 117,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(65,134,95)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6709\\u70b9\",\n",
       "                    \"value\": 106,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(64,93,57)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u903b\\u8f91\",\n",
       "                    \"value\": 104,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(7,95,109)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u7247\\u5b50\",\n",
       "                    \"value\": 103,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(108,51,89)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u8d85\\u7ea7\",\n",
       "                    \"value\": 100,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(76,88,120)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u770b\\u5230\",\n",
       "                    \"value\": 100,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(142,113,7)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u8fd9\\u90e8\",\n",
       "                    \"value\": 97,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(29,56,93)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u60c5\\u8282\",\n",
       "                    \"value\": 94,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(30,7,82)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u770b\\u4e0d\\u61c2\",\n",
       "                    \"value\": 94,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(50,121,8)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5dee\\u8bc4\",\n",
       "                    \"value\": 94,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(96,140,155)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6728\\u661f\",\n",
       "                    \"value\": 91,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(77,117,71)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6d6a\\u8d39\",\n",
       "                    \"value\": 89,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(12,53,84)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6d41\\u6d6a\",\n",
       "                    \"value\": 89,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(140,26,26)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e3b\\u89d2\",\n",
       "                    \"value\": 88,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(80,50,36)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5f3a\\u884c\",\n",
       "                    \"value\": 88,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(7,52,123)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u8fd9\\u79cd\",\n",
       "                    \"value\": 87,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(31,58,38)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u53f0\\u8bcd\",\n",
       "                    \"value\": 84,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(54,20,10)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5168\\u7a0b\",\n",
       "                    \"value\": 82,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(104,153,106)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e00\\u5206\",\n",
       "                    \"value\": 81,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(146,69,43)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u7761\\u89c9\",\n",
       "                    \"value\": 79,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(112,110,43)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5c0f\\u65f6\",\n",
       "                    \"value\": 79,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(57,92,104)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u51e0\\u4e2a\",\n",
       "                    \"value\": 75,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(87,18,69)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u771f\\u5fc3\",\n",
       "                    \"value\": 75,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(75,71,140)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6545\\u4e8b\",\n",
       "                    \"value\": 73,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(108,11,47)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5bfc\\u6f14\",\n",
       "                    \"value\": 72,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(140,85,85)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u559c\\u6b22\",\n",
       "                    \"value\": 72,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(128,2,88)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e24\\u4e2a\",\n",
       "                    \"value\": 71,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(142,52,103)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5927\\u7247\",\n",
       "                    \"value\": 71,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(158,15,52)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u770b\\u8fc7\",\n",
       "                    \"value\": 70,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(94,86,62)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5b9e\\u5728\",\n",
       "                    \"value\": 70,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(94,36,151)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e0d\\u597d\",\n",
       "                    \"value\": 69,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(81,30,41)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u53ea\\u80fd\",\n",
       "                    \"value\": 67,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(82,50,86)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u753b\\u9762\",\n",
       "                    \"value\": 66,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(150,58,154)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6c34\\u519b\",\n",
       "                    \"value\": 64,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(150,77,136)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u592a\\u70c2\",\n",
       "                    \"value\": 63,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(151,95,120)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u7279\\u522b\",\n",
       "                    \"value\": 62,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(124,6,87)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4eba\\u7269\",\n",
       "                    \"value\": 62,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(40,127,44)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u79d1\\u5e7b\\u7535\\u5f71\",\n",
       "                    \"value\": 61,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(43,8,3)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u771f\\u662f\",\n",
       "                    \"value\": 60,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(138,129,1)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u770b\\u7740\",\n",
       "                    \"value\": 60,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(134,81,86)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6574\\u4e2a\",\n",
       "                    \"value\": 59,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(134,25,26)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4eba\\u7c7b\",\n",
       "                    \"value\": 59,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(65,60,21)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u611f\\u60c5\",\n",
       "                    \"value\": 58,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(158,112,59)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6ca1\\u610f\\u601d\",\n",
       "                    \"value\": 57,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(40,35,89)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5b69\\u5b50\",\n",
       "                    \"value\": 56,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(85,23,65)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e00\\u822c\\u822c\",\n",
       "                    \"value\": 53,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(123,28,119)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e0d\\u884c\",\n",
       "                    \"value\": 53,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(31,53,138)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u8d85\\u70c2\",\n",
       "                    \"value\": 52,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(3,98,143)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5206\\u7ed9\",\n",
       "                    \"value\": 52,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(6,13,113)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5f71\\u7247\",\n",
       "                    \"value\": 52,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(42,27,146)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e00\\u4e0b\",\n",
       "                    \"value\": 51,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(138,121,14)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e00\\u534a\",\n",
       "                    \"value\": 51,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(67,142,65)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5e94\\u8be5\",\n",
       "                    \"value\": 51,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(71,22,55)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e71\\u4e03\\u516b\\u7cdf\",\n",
       "                    \"value\": 51,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(57,33,126)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5e0c\\u671b\",\n",
       "                    \"value\": 50,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(139,108,108)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6545\\u4e8b\\u60c5\\u8282\",\n",
       "                    \"value\": 50,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(76,116,20)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u9898\\u6750\",\n",
       "                    \"value\": 50,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(63,16,33)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u9ad8\\u5206\",\n",
       "                    \"value\": 50,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(144,132,139)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6548\\u679c\",\n",
       "                    \"value\": 50,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(68,94,54)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u667a\\u5546\",\n",
       "                    \"value\": 50,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(62,93,150)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u597d\\u8bc4\",\n",
       "                    \"value\": 49,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(75,69,3)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e0d\\u60f3\",\n",
       "                    \"value\": 44,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(98,25,29)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6bd4\\u8f83\",\n",
       "                    \"value\": 44,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(101,57,41)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6076\\u5fc3\",\n",
       "                    \"value\": 44,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(74,129,3)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u82f1\\u96c4\\u4e3b\\u4e49\",\n",
       "                    \"value\": 44,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(131,136,123)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u8bc4\\u4ef7\",\n",
       "                    \"value\": 43,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(81,131,49)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6218\\u72fc\",\n",
       "                    \"value\": 43,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(2,13,133)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"3D\",\n",
       "                    \"value\": 43,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(36,125,88)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u51b2\\u7740\",\n",
       "                    \"value\": 42,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(23,17,26)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u539f\\u8457\",\n",
       "                    \"value\": 42,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(159,103,133)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u60c5\\u6000\",\n",
       "                    \"value\": 42,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(121,74,40)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u7231\\u56fd\",\n",
       "                    \"value\": 42,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(55,93,147)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u65f6\\u95f4\",\n",
       "                    \"value\": 42,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(54,42,74)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u7a7a\\u95f4\\u7ad9\",\n",
       "                    \"value\": 42,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(102,98,70)\"\n",
       "                        }\n",
       "                    }\n",
       "                }\n",
       "            ]\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [],\n",
       "            \"selectedMode\": \"multiple\",\n",
       "            \"show\": true,\n",
       "            \"left\": \"center\",\n",
       "            \"top\": \"top\",\n",
       "            \"orient\": \"horizontal\",\n",
       "            \"textStyle\": {\n",
       "                \"fontSize\": 12,\n",
       "                \"color\": \"#333\"\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"backgroundColor\": \"#fff\",\n",
       "    \"color\": [\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\",\n",
       "        \"#f6f5ec\"\n",
       "    ]\n",
       "};\n",
       "myChart_5ff2689fc068415e8dec34b975fe21e9.setOption(option_5ff2689fc068415e8dec34b975fe21e9);\n",
       "\n",
       "    });\n",
       "</script>\n"
      ],
      "text/plain": [
       "<pyecharts.charts.wordcloud.WordCloud at 0x1119e4048>"
      ]
     },
     "execution_count": 148,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 低分的评价\n",
    "plot_word_cloud(data=data[data['score']<5], swords=swords)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 149,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>content</th>\n",
       "      <th>gender</th>\n",
       "      <th>id</th>\n",
       "      <th>nick</th>\n",
       "      <th>replyCount</th>\n",
       "      <th>score</th>\n",
       "      <th>time</th>\n",
       "      <th>upCount</th>\n",
       "      <th>userId</th>\n",
       "      <th>userLevel</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>time</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>2019-02-06 23:47:00</th>\n",
       "      <td>也许进入地下没有了阳光，人们的内心就趋向黑暗！小太妹一样的妹妹人设，不知所谓的混血？没有缘由...</td>\n",
       "      <td>1</td>\n",
       "      <td>1054591874</td>\n",
       "      <td>逗逼老爸</td>\n",
       "      <td>67</td>\n",
       "      <td>2</td>\n",
       "      <td>2019-02-06 23:47:00</td>\n",
       "      <td>99</td>\n",
       "      <td>163219720</td>\n",
       "      <td>4</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-02-07 23:00:00</th>\n",
       "      <td>太多人给这部片高分了，我必须给低分把这部电影的评分拉低，因为他不值得9点多分，顶多值6.5分...</td>\n",
       "      <td>1</td>\n",
       "      <td>1055063063</td>\n",
       "      <td>杨某X</td>\n",
       "      <td>42</td>\n",
       "      <td>2</td>\n",
       "      <td>2019-02-07 23:00:00</td>\n",
       "      <td>95</td>\n",
       "      <td>85500030</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-02-08 04:14:00</th>\n",
       "      <td>电影就是电影不要嘈杂着其他因素，就电影本质来说，这电影特效，大场面，做的让我赞叹不已，非常的...</td>\n",
       "      <td>1</td>\n",
       "      <td>1055119853</td>\n",
       "      <td>一抹晨曦784</td>\n",
       "      <td>21</td>\n",
       "      <td>3</td>\n",
       "      <td>2019-02-08 04:14:00</td>\n",
       "      <td>75</td>\n",
       "      <td>156486326</td>\n",
       "      <td>2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-02-08 01:42:00</th>\n",
       "      <td>情感细节0分，演员演技0分，特别是17岁的那两个孩子，真是醉了！从前烂到尾，bug多如牛毛。...</td>\n",
       "      <td>1</td>\n",
       "      <td>1055075620</td>\n",
       "      <td>秭归小武</td>\n",
       "      <td>25</td>\n",
       "      <td>1</td>\n",
       "      <td>2019-02-08 01:42:00</td>\n",
       "      <td>75</td>\n",
       "      <td>70329844</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-02-08 19:51:00</th>\n",
       "      <td>没逻辑没智商没演技超尴尬！最后不作不死的小女生用一篇激情澎湃的即兴小学生作文感动了全球救援队...</td>\n",
       "      <td>1</td>\n",
       "      <td>1055518330</td>\n",
       "      <td>威仔</td>\n",
       "      <td>22</td>\n",
       "      <td>1</td>\n",
       "      <td>2019-02-08 19:51:00</td>\n",
       "      <td>74</td>\n",
       "      <td>419136037</td>\n",
       "      <td>3</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-02-08 02:18:00</th>\n",
       "      <td>我想问问你们摸着良心说是真的觉得好看吗？反正有不少人跟我一起提前离场就是了。</td>\n",
       "      <td>0</td>\n",
       "      <td>1055083535</td>\n",
       "      <td>弧鸽</td>\n",
       "      <td>38</td>\n",
       "      <td>1</td>\n",
       "      <td>2019-02-08 02:18:00</td>\n",
       "      <td>74</td>\n",
       "      <td>1008203632</td>\n",
       "      <td>2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-02-06 06:16:00</th>\n",
       "      <td>理性分析，我是科幻迷，我对这部电影的科幻背景没有一点意见，特效当然是进步了，但用力过度，剧情...</td>\n",
       "      <td>1</td>\n",
       "      <td>1054184286</td>\n",
       "      <td>Refine？</td>\n",
       "      <td>97</td>\n",
       "      <td>4</td>\n",
       "      <td>2019-02-06 06:16:00</td>\n",
       "      <td>72</td>\n",
       "      <td>1053444729</td>\n",
       "      <td>2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-02-07 12:18:00</th>\n",
       "      <td>看过好后悔，好奇怪怎么会有这么多好评？真的不太好看，主演真心是败笔！几个年轻孩子根本撑不起这...</td>\n",
       "      <td>2</td>\n",
       "      <td>1054680274</td>\n",
       "      <td>淡然1547</td>\n",
       "      <td>48</td>\n",
       "      <td>3</td>\n",
       "      <td>2019-02-07 12:18:00</td>\n",
       "      <td>70</td>\n",
       "      <td>45444833</td>\n",
       "      <td>2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-02-10 10:40:00</th>\n",
       "      <td>这么烂的电影居然这么高评分，可见水军力量可以，还有就是随波逐流的那些不懂电影的人给个特效的赞...</td>\n",
       "      <td>1</td>\n",
       "      <td>1055061178</td>\n",
       "      <td>栄栄栄轩</td>\n",
       "      <td>25</td>\n",
       "      <td>1</td>\n",
       "      <td>2019-02-10 10:40:00</td>\n",
       "      <td>69</td>\n",
       "      <td>48197366</td>\n",
       "      <td>2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-02-08 02:29:00</th>\n",
       "      <td>垃圾，评分是假的</td>\n",
       "      <td>0</td>\n",
       "      <td>1055090859</td>\n",
       "      <td>三高人生</td>\n",
       "      <td>26</td>\n",
       "      <td>1</td>\n",
       "      <td>2019-02-08 02:29:00</td>\n",
       "      <td>68</td>\n",
       "      <td>1021605168</td>\n",
       "      <td>3</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                                               content  \\\n",
       "time                                                                     \n",
       "2019-02-06 23:47:00  也许进入地下没有了阳光，人们的内心就趋向黑暗！小太妹一样的妹妹人设，不知所谓的混血？没有缘由...   \n",
       "2019-02-07 23:00:00  太多人给这部片高分了，我必须给低分把这部电影的评分拉低，因为他不值得9点多分，顶多值6.5分...   \n",
       "2019-02-08 04:14:00  电影就是电影不要嘈杂着其他因素，就电影本质来说，这电影特效，大场面，做的让我赞叹不已，非常的...   \n",
       "2019-02-08 01:42:00  情感细节0分，演员演技0分，特别是17岁的那两个孩子，真是醉了！从前烂到尾，bug多如牛毛。...   \n",
       "2019-02-08 19:51:00  没逻辑没智商没演技超尴尬！最后不作不死的小女生用一篇激情澎湃的即兴小学生作文感动了全球救援队...   \n",
       "2019-02-08 02:18:00             我想问问你们摸着良心说是真的觉得好看吗？反正有不少人跟我一起提前离场就是了。   \n",
       "2019-02-06 06:16:00  理性分析，我是科幻迷，我对这部电影的科幻背景没有一点意见，特效当然是进步了，但用力过度，剧情...   \n",
       "2019-02-07 12:18:00  看过好后悔，好奇怪怎么会有这么多好评？真的不太好看，主演真心是败笔！几个年轻孩子根本撑不起这...   \n",
       "2019-02-10 10:40:00  这么烂的电影居然这么高评分，可见水军力量可以，还有就是随波逐流的那些不懂电影的人给个特效的赞...   \n",
       "2019-02-08 02:29:00                                           垃圾，评分是假的   \n",
       "\n",
       "                     gender          id     nick  replyCount  score  \\\n",
       "time                                                                  \n",
       "2019-02-06 23:47:00       1  1054591874     逗逼老爸          67      2   \n",
       "2019-02-07 23:00:00       1  1055063063      杨某X          42      2   \n",
       "2019-02-08 04:14:00       1  1055119853  一抹晨曦784          21      3   \n",
       "2019-02-08 01:42:00       1  1055075620     秭归小武          25      1   \n",
       "2019-02-08 19:51:00       1  1055518330       威仔          22      1   \n",
       "2019-02-08 02:18:00       0  1055083535       弧鸽          38      1   \n",
       "2019-02-06 06:16:00       1  1054184286  Refine？          97      4   \n",
       "2019-02-07 12:18:00       2  1054680274   淡然1547          48      3   \n",
       "2019-02-10 10:40:00       1  1055061178     栄栄栄轩          25      1   \n",
       "2019-02-08 02:29:00       0  1055090859     三高人生          26      1   \n",
       "\n",
       "                                   time  upCount      userId  userLevel  \n",
       "time                                                                     \n",
       "2019-02-06 23:47:00 2019-02-06 23:47:00       99   163219720          4  \n",
       "2019-02-07 23:00:00 2019-02-07 23:00:00       95    85500030          1  \n",
       "2019-02-08 04:14:00 2019-02-08 04:14:00       75   156486326          2  \n",
       "2019-02-08 01:42:00 2019-02-08 01:42:00       75    70329844          1  \n",
       "2019-02-08 19:51:00 2019-02-08 19:51:00       74   419136037          3  \n",
       "2019-02-08 02:18:00 2019-02-08 02:18:00       74  1008203632          2  \n",
       "2019-02-06 06:16:00 2019-02-06 06:16:00       72  1053444729          2  \n",
       "2019-02-07 12:18:00 2019-02-07 12:18:00       70    45444833          2  \n",
       "2019-02-10 10:40:00 2019-02-10 10:40:00       69    48197366          2  \n",
       "2019-02-08 02:29:00 2019-02-08 02:29:00       68  1021605168          3  "
      ]
     },
     "execution_count": 149,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data[data['score']<5].nlargest(10, 'upCount')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 150,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "也许进入地下没有了阳光，人们的内心就趋向黑暗！小太妹一样的妹妹人设，不知所谓的混血？没有缘由的痞帅（真心不帅），地震只顾自己逃亡不让救人的姥爷，吐满自己的头盔又抢别人头盔的救援队？为了亲情强行不进入休眠的爸爸，为了不再死人打坏火石的女队员……不学无术的少年比世界所有科学家都厉害，看来地球就剩下牛顿的弟弟牛逼啦！整部片子充满了一种戾气！为啥中国拯救世界就非得用这样的人物支撑人设？为了后面的反转？虽然特效还行，真心不好看！希望不要影响大家的观影心情！\n",
      "\n",
      "太多人给这部片高分了，我必须给低分把这部电影的评分拉低，因为他不值得9点多分，顶多值6.5分样子，在国产片里面算不错的，剧情烂，东拉西扯的，地球你造发动机推动脱离太阳引力我也忍了，点燃木星就太扯了，点燃木星瞬间推动地球逃脱木星引力，那么大的冲击力地球生物不死绝鬼都不信！还有作为灾难科幻片，震撼人心的灾难场景基本没有，地球停海啸爆发，我一直在期待灾难爆发时刻人类逃亡的场景，但是从头到尾都没有！走到哪里都挂着国旗，又是打爱国情怀，很符合吴京蹭爱国热度的习惯，反正不会错，但是我就觉得很作！恶心！\n",
      "\n",
      "电影就是电影不要嘈杂着其他因素，就电影本质来说，这电影特效，大场面，做的让我赞叹不已，非常的有气势，但是演员演技实在捉急，特别是两个主角，男主人设叛逆性格太过了，女主那段演讲是本片的最大败笔，看完那段演讲让我尴尬的有种跑出电影院的冲动，每个人物死掉都会莫名其妙的来段演讲煽情戏，编剧真的是尬王！总的来说，网上给予这片子得评分没有很客观，相比较国外科幻大片，流浪地球有进步，但是还差得远！电影就是电影跟爱不爱国无关，请不要道德绑架！\n",
      "\n",
      "情感细节0分，演员演技0分，特别是17岁的那两个孩子，真是醉了！从前烂到尾，bug多如牛毛。无数个人在玩手机。中国科幻电影需要学习的地方还有太多太多。\n",
      "\n",
      "以后看电影不能再去豆瓣上看评分啦，前期的水军真多！\n",
      "\n",
      "没逻辑没智商没演技超尴尬！最后不作不死的小女生用一篇激情澎湃的即兴小学生作文感动了全球救援队！成功拯救了地球！这导演跟编剧是小学没毕业吧！\n",
      "\n",
      "我想问问你们摸着良心说是真的觉得好看吗？反正有不少人跟我一起提前离场就是了。\n",
      "\n",
      "理性分析，我是科幻迷，我对这部电影的科幻背景没有一点意见，特效当然是进步了，但用力过度，剧情从引爆木星那段就开始崩了，在此之前一切都称得上非常不错，在引爆木星剧情开始前，我甚至以为电影结束了，结果又塞进来一大段，我就耐着性子继续看，结果越来越崩，各种雷点和莫名其妙的煽情点，还可以忍忍，到了主角坠崖我以为结束了，这时候电影在我心里值7.5分，结果！又塞进去不长不短的一段莫名其妙的典型喜剧式结尾，主角头盔破了，暴露在缺氧和超低温环境下不知道多久，居然活蹦乱跳？这是欺负谁的智商呢？电影在这里彻底崩掉，如果说引爆木星之前，这部电影完全比肩世界其他任何科幻片，引爆木星以后，就完全沦落为国产轻喜剧。\n",
      "\n",
      "看过好后悔，好奇怪怎么会有这么多好评？真的不太好看，主演真心是败笔！几个年轻孩子根本撑不起这样的巨作！最终竟然是啥都不会的年轻小孩拯救地球？假的要死！那么多高科技产品，没经过任何训练怎么可能会操作？专业救援队倒是什么都不懂，只会干点出力的事！导演脑袋有坑吧！\n",
      "还有主演朵朵，都不知道她在剧里有什么用？只为煽情吗？这么好的大片整个无用的人煽情太毁剧了！\n",
      "除了特效没有看点！不是黑粉，个人感受，不喜勿喷！\n",
      "\n",
      "这么烂的电影居然这么高评分，可见水军力量可以，还有就是随波逐流的那些不懂电影的人给个特效的赞吧，一个围绕家庭亲情为主线拯救地球的故事，居然靠一个自恃清高演技一般的小孩为主，全球科学家全球人都没有一个小孩厉害，国内科幻片还是有很大进步空间，不是我不支持国产电影而是这个电影本人感觉没有逻辑没有足够的理论知识卖个特效骗个票房，希望还是多用心做电影吧…\n",
      "\n",
      "垃圾，评分是假的\n",
      "\n"
     ]
    }
   ],
   "source": [
    "for i in data[data['score']<5].nlargest(10, 'upCount')['content']:\n",
    "    print(i+'\\n')"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##### 5. 低分的人群有哪些特征？（性别、等级）"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 172,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts': '/nbextensions/echarts/echarts.min'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "    <div id=\"40d7a2103be14bd2a5844d4b2035aaa5\" style=\"width:700px;height:400px;\"></div>\n",
       "\n",
       "\n",
       "<script>\n",
       "    require(['echarts'], function(echarts) {\n",
       "        \n",
       "var myChart_40d7a2103be14bd2a5844d4b2035aaa5 = echarts.init(document.getElementById('40d7a2103be14bd2a5844d4b2035aaa5'), null, {renderer: 'canvas'});\n",
       "var option_40d7a2103be14bd2a5844d4b2035aaa5 = {\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"text\": \"\\u300a\\u6d41\\u6d6a\\u5730\\u7403\\u300b\\u89c2\\u4f17\\u6027\\u522b\",\n",
       "            \"subtext\": \"\",\n",
       "            \"left\": \"auto\",\n",
       "            \"top\": \"auto\",\n",
       "            \"textStyle\": {\n",
       "                \"color\": \"#000\",\n",
       "                \"fontSize\": 18\n",
       "            },\n",
       "            \"subtextStyle\": {\n",
       "                \"color\": \"#aaa\",\n",
       "                \"fontSize\": 12\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"toolbox\": {\n",
       "        \"show\": true,\n",
       "        \"orient\": \"vertical\",\n",
       "        \"left\": \"95%\",\n",
       "        \"top\": \"center\",\n",
       "        \"feature\": {\n",
       "            \"saveAsImage\": {\n",
       "                \"show\": true,\n",
       "                \"title\": \"\\u4e0b\\u8f7d\\u56fe\\u7247\"\n",
       "            },\n",
       "            \"restore\": {\n",
       "                \"show\": true\n",
       "            },\n",
       "            \"dataView\": {\n",
       "                \"show\": true\n",
       "            }\n",
       "        }\n",
       "    },\n",
       "    \"series_id\": 5526567,\n",
       "    \"tooltip\": {\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"formatter\": null,\n",
       "        \"textStyle\": {\n",
       "            \"color\": \"#fff\",\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"backgroundColor\": \"rgba(50,50,50,0.7)\",\n",
       "        \"borderColor\": \"#333\",\n",
       "        \"borderWidth\": 0\n",
       "    },\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"bar\",\n",
       "            \"name\": \"\",\n",
       "            \"data\": [\n",
       "                44416.0,\n",
       "                37838.0,\n",
       "                20326.0\n",
       "            ],\n",
       "            \"stack\": \"stack_5526567\",\n",
       "            \"barCategoryGap\": \"60%\",\n",
       "            \"label\": {\n",
       "                \"normal\": {\n",
       "                    \"show\": true,\n",
       "                    \"position\": \"top\",\n",
       "                    \"textStyle\": {\n",
       "                        \"color\": \"#000\",\n",
       "                        \"fontSize\": 12\n",
       "                    },\n",
       "                    \"formatter\": null\n",
       "                },\n",
       "                \"emphasis\": {\n",
       "                    \"show\": true,\n",
       "                    \"position\": null,\n",
       "                    \"textStyle\": {\n",
       "                        \"color\": \"#fff\",\n",
       "                        \"fontSize\": 12\n",
       "                    }\n",
       "                }\n",
       "            },\n",
       "            \"markPoint\": {\n",
       "                \"data\": []\n",
       "            },\n",
       "            \"markLine\": {\n",
       "                \"data\": []\n",
       "            },\n",
       "            \"seriesId\": 5526567\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [\n",
       "                \"\"\n",
       "            ],\n",
       "            \"selectedMode\": \"multiple\",\n",
       "            \"show\": true,\n",
       "            \"left\": \"center\",\n",
       "            \"top\": \"top\",\n",
       "            \"orient\": \"horizontal\",\n",
       "            \"textStyle\": {\n",
       "                \"fontSize\": 18,\n",
       "                \"color\": \"#333\"\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"backgroundColor\": \"#fff\",\n",
       "    \"xAxis\": [\n",
       "        {\n",
       "            \"name\": \"\",\n",
       "            \"show\": true,\n",
       "            \"nameLocation\": \"middle\",\n",
       "            \"nameGap\": 25,\n",
       "            \"nameTextStyle\": {\n",
       "                \"fontSize\": 14\n",
       "            },\n",
       "            \"axisLabel\": {\n",
       "                \"interval\": \"auto\",\n",
       "                \"rotate\": 0,\n",
       "                \"margin\": 8,\n",
       "                \"textStyle\": {\n",
       "                    \"fontSize\": 18,\n",
       "                    \"color\": \"#000\"\n",
       "                }\n",
       "            },\n",
       "            \"axisTick\": {\n",
       "                \"alignWithLabel\": false\n",
       "            },\n",
       "            \"inverse\": false,\n",
       "            \"position\": null,\n",
       "            \"boundaryGap\": true,\n",
       "            \"min\": null,\n",
       "            \"max\": null,\n",
       "            \"data\": [\n",
       "                \"\\u672a\\u77e5\",\n",
       "                \"\\u7537\",\n",
       "                \"\\u5973\"\n",
       "            ],\n",
       "            \"type\": \"category\"\n",
       "        }\n",
       "    ],\n",
       "    \"yAxis\": [\n",
       "        {\n",
       "            \"name\": \"\",\n",
       "            \"show\": true,\n",
       "            \"nameLocation\": \"middle\",\n",
       "            \"nameGap\": 25,\n",
       "            \"nameTextStyle\": {\n",
       "                \"fontSize\": 14\n",
       "            },\n",
       "            \"axisLabel\": {\n",
       "                \"formatter\": \"{value} \",\n",
       "                \"rotate\": 0,\n",
       "                \"interval\": \"auto\",\n",
       "                \"margin\": 8,\n",
       "                \"textStyle\": {\n",
       "                    \"fontSize\": 18,\n",
       "                    \"color\": \"#000\"\n",
       "                }\n",
       "            },\n",
       "            \"axisTick\": {\n",
       "                \"alignWithLabel\": false\n",
       "            },\n",
       "            \"inverse\": false,\n",
       "            \"position\": null,\n",
       "            \"boundaryGap\": true,\n",
       "            \"min\": null,\n",
       "            \"max\": null,\n",
       "            \"splitLine\": {\n",
       "                \"show\": true\n",
       "            },\n",
       "            \"type\": \"value\"\n",
       "        }\n",
       "    ],\n",
       "    \"color\": [\n",
       "        \"#130f40\",\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\",\n",
       "        \"#f6f5ec\"\n",
       "    ]\n",
       "};\n",
       "myChart_40d7a2103be14bd2a5844d4b2035aaa5.setOption(option_40d7a2103be14bd2a5844d4b2035aaa5);\n",
       "\n",
       "    });\n",
       "</script>\n"
      ],
      "text/plain": [
       "<pyecharts.charts.bar.Bar at 0x111d127f0>"
      ]
     },
     "execution_count": 172,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 总体的性别比例\n",
    "gender_total = data['gender'].value_counts()\n",
    "bar = Bar(\"《流浪地球》观众性别\", width=700)\n",
    "bar.add(\"\", ['未知', '男', '女'], gender_total.values, is_stack=True, is_label_show=True,\n",
    "       bar_category_gap='60%', label_color = ['#130f40'],\n",
    "       legend_text_size=18,xaxis_label_textsize=18,yaxis_label_textsize=18)\n",
    "bar"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 175,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0    43.298889\n",
       "1    36.886333\n",
       "2    19.814779\n",
       "Name: gender, dtype: float64"
      ]
     },
     "execution_count": 175,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "gender_total/gender_total.sum()*100"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 185,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts': '/nbextensions/echarts/echarts.min'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "    <div id=\"07b85b334ac34c0c88ee279c1328dda9\" style=\"width:700px;height:400px;\"></div>\n",
       "\n",
       "\n",
       "<script>\n",
       "    require(['echarts'], function(echarts) {\n",
       "        \n",
       "var myChart_07b85b334ac34c0c88ee279c1328dda9 = echarts.init(document.getElementById('07b85b334ac34c0c88ee279c1328dda9'), null, {renderer: 'canvas'});\n",
       "var option_07b85b334ac34c0c88ee279c1328dda9 = {\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"text\": \"\\u300a\\u6d41\\u6d6a\\u5730\\u7403\\u300b\\u4f4e\\u5206\\u8bc4\\u8bba\\u89c2\\u4f17\\u6027\\u522b\",\n",
       "            \"subtext\": \"\",\n",
       "            \"left\": \"auto\",\n",
       "            \"top\": \"auto\",\n",
       "            \"textStyle\": {\n",
       "                \"color\": \"#000\",\n",
       "                \"fontSize\": 18\n",
       "            },\n",
       "            \"subtextStyle\": {\n",
       "                \"color\": \"#aaa\",\n",
       "                \"fontSize\": 12\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"toolbox\": {\n",
       "        \"show\": true,\n",
       "        \"orient\": \"vertical\",\n",
       "        \"left\": \"95%\",\n",
       "        \"top\": \"center\",\n",
       "        \"feature\": {\n",
       "            \"saveAsImage\": {\n",
       "                \"show\": true,\n",
       "                \"title\": \"\\u4e0b\\u8f7d\\u56fe\\u7247\"\n",
       "            },\n",
       "            \"restore\": {\n",
       "                \"show\": true\n",
       "            },\n",
       "            \"dataView\": {\n",
       "                \"show\": true\n",
       "            }\n",
       "        }\n",
       "    },\n",
       "    \"series_id\": 2673861,\n",
       "    \"tooltip\": {\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"formatter\": null,\n",
       "        \"textStyle\": {\n",
       "            \"color\": \"#fff\",\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"backgroundColor\": \"rgba(50,50,50,0.7)\",\n",
       "        \"borderColor\": \"#333\",\n",
       "        \"borderWidth\": 0\n",
       "    },\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"bar\",\n",
       "            \"name\": \"\",\n",
       "            \"data\": [\n",
       "                1590.0,\n",
       "                1410.0,\n",
       "                728.0\n",
       "            ],\n",
       "            \"stack\": \"stack_2673861\",\n",
       "            \"barCategoryGap\": \"60%\",\n",
       "            \"label\": {\n",
       "                \"normal\": {\n",
       "                    \"show\": true,\n",
       "                    \"position\": \"top\",\n",
       "                    \"textStyle\": {\n",
       "                        \"color\": \"#000\",\n",
       "                        \"fontSize\": 12\n",
       "                    },\n",
       "                    \"formatter\": null\n",
       "                },\n",
       "                \"emphasis\": {\n",
       "                    \"show\": true,\n",
       "                    \"position\": null,\n",
       "                    \"textStyle\": {\n",
       "                        \"color\": \"#fff\",\n",
       "                        \"fontSize\": 12\n",
       "                    }\n",
       "                }\n",
       "            },\n",
       "            \"markPoint\": {\n",
       "                \"data\": []\n",
       "            },\n",
       "            \"markLine\": {\n",
       "                \"data\": []\n",
       "            },\n",
       "            \"seriesId\": 2673861\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [\n",
       "                \"\"\n",
       "            ],\n",
       "            \"selectedMode\": \"multiple\",\n",
       "            \"show\": true,\n",
       "            \"left\": \"center\",\n",
       "            \"top\": \"top\",\n",
       "            \"orient\": \"horizontal\",\n",
       "            \"textStyle\": {\n",
       "                \"fontSize\": 18,\n",
       "                \"color\": \"#333\"\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"backgroundColor\": \"#fff\",\n",
       "    \"xAxis\": [\n",
       "        {\n",
       "            \"name\": \"\",\n",
       "            \"show\": true,\n",
       "            \"nameLocation\": \"middle\",\n",
       "            \"nameGap\": 25,\n",
       "            \"nameTextStyle\": {\n",
       "                \"fontSize\": 14\n",
       "            },\n",
       "            \"axisLabel\": {\n",
       "                \"interval\": \"auto\",\n",
       "                \"rotate\": 0,\n",
       "                \"margin\": 8,\n",
       "                \"textStyle\": {\n",
       "                    \"fontSize\": 18,\n",
       "                    \"color\": \"#000\"\n",
       "                }\n",
       "            },\n",
       "            \"axisTick\": {\n",
       "                \"alignWithLabel\": false\n",
       "            },\n",
       "            \"inverse\": false,\n",
       "            \"position\": null,\n",
       "            \"boundaryGap\": true,\n",
       "            \"min\": null,\n",
       "            \"max\": null,\n",
       "            \"data\": [\n",
       "                \"\\u672a\\u77e5\",\n",
       "                \"\\u7537\",\n",
       "                \"\\u5973\"\n",
       "            ],\n",
       "            \"type\": \"category\"\n",
       "        }\n",
       "    ],\n",
       "    \"yAxis\": [\n",
       "        {\n",
       "            \"name\": \"\",\n",
       "            \"show\": true,\n",
       "            \"nameLocation\": \"middle\",\n",
       "            \"nameGap\": 25,\n",
       "            \"nameTextStyle\": {\n",
       "                \"fontSize\": 14\n",
       "            },\n",
       "            \"axisLabel\": {\n",
       "                \"formatter\": \"{value} \",\n",
       "                \"rotate\": 0,\n",
       "                \"interval\": \"auto\",\n",
       "                \"margin\": 8,\n",
       "                \"textStyle\": {\n",
       "                    \"fontSize\": 18,\n",
       "                    \"color\": \"#000\"\n",
       "                }\n",
       "            },\n",
       "            \"axisTick\": {\n",
       "                \"alignWithLabel\": false\n",
       "            },\n",
       "            \"inverse\": false,\n",
       "            \"position\": null,\n",
       "            \"boundaryGap\": true,\n",
       "            \"min\": null,\n",
       "            \"max\": null,\n",
       "            \"splitLine\": {\n",
       "                \"show\": true\n",
       "            },\n",
       "            \"type\": \"value\"\n",
       "        }\n",
       "    ],\n",
       "    \"color\": [\n",
       "        \"#130f40\",\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\",\n",
       "        \"#f6f5ec\"\n",
       "    ]\n",
       "};\n",
       "myChart_07b85b334ac34c0c88ee279c1328dda9.setOption(option_07b85b334ac34c0c88ee279c1328dda9);\n",
       "\n",
       "    });\n",
       "</script>\n"
      ],
      "text/plain": [
       "<pyecharts.charts.bar.Bar at 0x11295a860>"
      ]
     },
     "execution_count": 185,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 低分的性别比例\n",
    "gender_low = data.loc[data['score']<5, 'gender'].value_counts()\n",
    "bar = Bar(\"《流浪地球》低分评论观众性别\", width=700)\n",
    "bar.add(\"\", ['未知'zh, '男', '女'], gender_low.values, is_stack=True, is_label_show=True,\n",
    "       bar_category_gap='60%', label_color = ['#130f40'],\n",
    "       legend_text_size=18,xaxis_label_textsize=18,yaxis_label_textsize=18)\n",
    "bar"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 179,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0    42.650215\n",
       "1    37.821888\n",
       "2    19.527897\n",
       "Name: gender, dtype: float64"
      ]
     },
     "execution_count": 179,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "gender_low/gender_low.sum()*100"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 187,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts': '/nbextensions/echarts/echarts.min'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "    <div id=\"3c0b46bba650414c9dd28a816bef63b7\" style=\"width:700px;height:400px;\"></div>\n",
       "\n",
       "\n",
       "<script>\n",
       "    require(['echarts'], function(echarts) {\n",
       "        \n",
       "var myChart_3c0b46bba650414c9dd28a816bef63b7 = echarts.init(document.getElementById('3c0b46bba650414c9dd28a816bef63b7'), null, {renderer: 'canvas'});\n",
       "var option_3c0b46bba650414c9dd28a816bef63b7 = {\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"text\": \"\\u300a\\u6d41\\u6d6a\\u5730\\u7403\\u300b\\u89c2\\u4f17\\u7b49\\u7ea7\",\n",
       "            \"subtext\": \"\",\n",
       "            \"left\": \"auto\",\n",
       "            \"top\": \"auto\",\n",
       "            \"textStyle\": {\n",
       "                \"color\": \"#000\",\n",
       "                \"fontSize\": 18\n",
       "            },\n",
       "            \"subtextStyle\": {\n",
       "                \"color\": \"#aaa\",\n",
       "                \"fontSize\": 12\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"toolbox\": {\n",
       "        \"show\": true,\n",
       "        \"orient\": \"vertical\",\n",
       "        \"left\": \"95%\",\n",
       "        \"top\": \"center\",\n",
       "        \"feature\": {\n",
       "            \"saveAsImage\": {\n",
       "                \"show\": true,\n",
       "                \"title\": \"\\u4e0b\\u8f7d\\u56fe\\u7247\"\n",
       "            },\n",
       "            \"restore\": {\n",
       "                \"show\": true\n",
       "            },\n",
       "            \"dataView\": {\n",
       "                \"show\": true\n",
       "            }\n",
       "        }\n",
       "    },\n",
       "    \"series_id\": 5412284,\n",
       "    \"tooltip\": {\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"formatter\": null,\n",
       "        \"textStyle\": {\n",
       "            \"color\": \"#fff\",\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"backgroundColor\": \"rgba(50,50,50,0.7)\",\n",
       "        \"borderColor\": \"#333\",\n",
       "        \"borderWidth\": 0\n",
       "    },\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"bar\",\n",
       "            \"name\": \"\",\n",
       "            \"data\": [\n",
       "                135.0,\n",
       "                14557.0,\n",
       "                45060.0,\n",
       "                30663.0,\n",
       "                10399.0,\n",
       "                1661.0,\n",
       "                105.0\n",
       "            ],\n",
       "            \"stack\": \"stack_5412284\",\n",
       "            \"barCategoryGap\": \"40%\",\n",
       "            \"label\": {\n",
       "                \"normal\": {\n",
       "                    \"show\": true,\n",
       "                    \"position\": \"top\",\n",
       "                    \"textStyle\": {\n",
       "                        \"color\": \"#000\",\n",
       "                        \"fontSize\": 12\n",
       "                    },\n",
       "                    \"formatter\": null\n",
       "                },\n",
       "                \"emphasis\": {\n",
       "                    \"show\": true,\n",
       "                    \"position\": null,\n",
       "                    \"textStyle\": {\n",
       "                        \"color\": \"#fff\",\n",
       "                        \"fontSize\": 12\n",
       "                    }\n",
       "                }\n",
       "            },\n",
       "            \"markPoint\": {\n",
       "                \"data\": []\n",
       "            },\n",
       "            \"markLine\": {\n",
       "                \"data\": []\n",
       "            },\n",
       "            \"seriesId\": 5412284\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [\n",
       "                \"\"\n",
       "            ],\n",
       "            \"selectedMode\": \"multiple\",\n",
       "            \"show\": true,\n",
       "            \"left\": \"center\",\n",
       "            \"top\": \"top\",\n",
       "            \"orient\": \"horizontal\",\n",
       "            \"textStyle\": {\n",
       "                \"fontSize\": 18,\n",
       "                \"color\": \"#333\"\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"backgroundColor\": \"#fff\",\n",
       "    \"xAxis\": [\n",
       "        {\n",
       "            \"name\": \"\",\n",
       "            \"show\": true,\n",
       "            \"nameLocation\": \"middle\",\n",
       "            \"nameGap\": 25,\n",
       "            \"nameTextStyle\": {\n",
       "                \"fontSize\": 14\n",
       "            },\n",
       "            \"axisLabel\": {\n",
       "                \"interval\": \"auto\",\n",
       "                \"rotate\": 0,\n",
       "                \"margin\": 8,\n",
       "                \"textStyle\": {\n",
       "                    \"fontSize\": 18,\n",
       "                    \"color\": \"#000\"\n",
       "                }\n",
       "            },\n",
       "            \"axisTick\": {\n",
       "                \"alignWithLabel\": false\n",
       "            },\n",
       "            \"inverse\": false,\n",
       "            \"position\": null,\n",
       "            \"boundaryGap\": true,\n",
       "            \"min\": null,\n",
       "            \"max\": null,\n",
       "            \"data\": [\n",
       "                0.0,\n",
       "                1.0,\n",
       "                2.0,\n",
       "                3.0,\n",
       "                4.0,\n",
       "                5.0,\n",
       "                6.0\n",
       "            ],\n",
       "            \"type\": \"category\"\n",
       "        }\n",
       "    ],\n",
       "    \"yAxis\": [\n",
       "        {\n",
       "            \"name\": \"\",\n",
       "            \"show\": true,\n",
       "            \"nameLocation\": \"middle\",\n",
       "            \"nameGap\": 25,\n",
       "            \"nameTextStyle\": {\n",
       "                \"fontSize\": 14\n",
       "            },\n",
       "            \"axisLabel\": {\n",
       "                \"formatter\": \"{value} \",\n",
       "                \"rotate\": 0,\n",
       "                \"interval\": \"auto\",\n",
       "                \"margin\": 8,\n",
       "                \"textStyle\": {\n",
       "                    \"fontSize\": 18,\n",
       "                    \"color\": \"#000\"\n",
       "                }\n",
       "            },\n",
       "            \"axisTick\": {\n",
       "                \"alignWithLabel\": false\n",
       "            },\n",
       "            \"inverse\": false,\n",
       "            \"position\": null,\n",
       "            \"boundaryGap\": true,\n",
       "            \"min\": null,\n",
       "            \"max\": null,\n",
       "            \"splitLine\": {\n",
       "                \"show\": true\n",
       "            },\n",
       "            \"type\": \"value\"\n",
       "        }\n",
       "    ],\n",
       "    \"color\": [\n",
       "        \"#130f40\",\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\",\n",
       "        \"#f6f5ec\"\n",
       "    ]\n",
       "};\n",
       "myChart_3c0b46bba650414c9dd28a816bef63b7.setOption(option_3c0b46bba650414c9dd28a816bef63b7);\n",
       "\n",
       "    });\n",
       "</script>\n"
      ],
      "text/plain": [
       "<pyecharts.charts.bar.Bar at 0x111b729e8>"
      ]
     },
     "execution_count": 187,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 总体的等级比例\n",
    "level_total = data['userLevel'].value_counts().sort_index()\n",
    "bar = Bar(\"《流浪地球》观众等级\", width=700)\n",
    "bar.add(\"\", level_total.index, level_total.values, is_stack=True, is_label_show=True,\n",
    "       bar_category_gap='40%', label_color = ['#130f40'],\n",
    "       legend_text_size=18,xaxis_label_textsize=18,yaxis_label_textsize=18)\n",
    "bar"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 188,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts': '/nbextensions/echarts/echarts.min'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "    <div id=\"adf3c2c78d3a4c76b446452267e44831\" style=\"width:700px;height:400px;\"></div>\n",
       "\n",
       "\n",
       "<script>\n",
       "    require(['echarts'], function(echarts) {\n",
       "        \n",
       "var myChart_adf3c2c78d3a4c76b446452267e44831 = echarts.init(document.getElementById('adf3c2c78d3a4c76b446452267e44831'), null, {renderer: 'canvas'});\n",
       "var option_adf3c2c78d3a4c76b446452267e44831 = {\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"text\": \"\\u300a\\u6d41\\u6d6a\\u5730\\u7403\\u300b\\u4f4e\\u5206\\u8bc4\\u8bba\\u7684\\u89c2\\u4f17\\u7b49\\u7ea7\",\n",
       "            \"subtext\": \"\",\n",
       "            \"left\": \"auto\",\n",
       "            \"top\": \"auto\",\n",
       "            \"textStyle\": {\n",
       "                \"color\": \"#000\",\n",
       "                \"fontSize\": 18\n",
       "            },\n",
       "            \"subtextStyle\": {\n",
       "                \"color\": \"#aaa\",\n",
       "                \"fontSize\": 12\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"toolbox\": {\n",
       "        \"show\": true,\n",
       "        \"orient\": \"vertical\",\n",
       "        \"left\": \"95%\",\n",
       "        \"top\": \"center\",\n",
       "        \"feature\": {\n",
       "            \"saveAsImage\": {\n",
       "                \"show\": true,\n",
       "                \"title\": \"\\u4e0b\\u8f7d\\u56fe\\u7247\"\n",
       "            },\n",
       "            \"restore\": {\n",
       "                \"show\": true\n",
       "            },\n",
       "            \"dataView\": {\n",
       "                \"show\": true\n",
       "            }\n",
       "        }\n",
       "    },\n",
       "    \"series_id\": 8406715,\n",
       "    \"tooltip\": {\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"formatter\": null,\n",
       "        \"textStyle\": {\n",
       "            \"color\": \"#fff\",\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"backgroundColor\": \"rgba(50,50,50,0.7)\",\n",
       "        \"borderColor\": \"#333\",\n",
       "        \"borderWidth\": 0\n",
       "    },\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"bar\",\n",
       "            \"name\": \"\",\n",
       "            \"data\": [\n",
       "                7.0,\n",
       "                445.0,\n",
       "                1592.0,\n",
       "                1232.0,\n",
       "                384.0,\n",
       "                63.0,\n",
       "                5.0\n",
       "            ],\n",
       "            \"stack\": \"stack_8406715\",\n",
       "            \"barCategoryGap\": \"40%\",\n",
       "            \"label\": {\n",
       "                \"normal\": {\n",
       "                    \"show\": true,\n",
       "                    \"position\": \"top\",\n",
       "                    \"textStyle\": {\n",
       "                        \"color\": \"#000\",\n",
       "                        \"fontSize\": 12\n",
       "                    },\n",
       "                    \"formatter\": null\n",
       "                },\n",
       "                \"emphasis\": {\n",
       "                    \"show\": true,\n",
       "                    \"position\": null,\n",
       "                    \"textStyle\": {\n",
       "                        \"color\": \"#fff\",\n",
       "                        \"fontSize\": 12\n",
       "                    }\n",
       "                }\n",
       "            },\n",
       "            \"markPoint\": {\n",
       "                \"data\": []\n",
       "            },\n",
       "            \"markLine\": {\n",
       "                \"data\": []\n",
       "            },\n",
       "            \"seriesId\": 8406715\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [\n",
       "                \"\"\n",
       "            ],\n",
       "            \"selectedMode\": \"multiple\",\n",
       "            \"show\": true,\n",
       "            \"left\": \"center\",\n",
       "            \"top\": \"top\",\n",
       "            \"orient\": \"horizontal\",\n",
       "            \"textStyle\": {\n",
       "                \"fontSize\": 18,\n",
       "                \"color\": \"#333\"\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"backgroundColor\": \"#fff\",\n",
       "    \"xAxis\": [\n",
       "        {\n",
       "            \"name\": \"\",\n",
       "            \"show\": true,\n",
       "            \"nameLocation\": \"middle\",\n",
       "            \"nameGap\": 25,\n",
       "            \"nameTextStyle\": {\n",
       "                \"fontSize\": 14\n",
       "            },\n",
       "            \"axisLabel\": {\n",
       "                \"interval\": \"auto\",\n",
       "                \"rotate\": 0,\n",
       "                \"margin\": 8,\n",
       "                \"textStyle\": {\n",
       "                    \"fontSize\": 18,\n",
       "                    \"color\": \"#000\"\n",
       "                }\n",
       "            },\n",
       "            \"axisTick\": {\n",
       "                \"alignWithLabel\": false\n",
       "            },\n",
       "            \"inverse\": false,\n",
       "            \"position\": null,\n",
       "            \"boundaryGap\": true,\n",
       "            \"min\": null,\n",
       "            \"max\": null,\n",
       "            \"data\": [\n",
       "                0.0,\n",
       "                1.0,\n",
       "                2.0,\n",
       "                3.0,\n",
       "                4.0,\n",
       "                5.0,\n",
       "                6.0\n",
       "            ],\n",
       "            \"type\": \"category\"\n",
       "        }\n",
       "    ],\n",
       "    \"yAxis\": [\n",
       "        {\n",
       "            \"name\": \"\",\n",
       "            \"show\": true,\n",
       "            \"nameLocation\": \"middle\",\n",
       "            \"nameGap\": 25,\n",
       "            \"nameTextStyle\": {\n",
       "                \"fontSize\": 14\n",
       "            },\n",
       "            \"axisLabel\": {\n",
       "                \"formatter\": \"{value} \",\n",
       "                \"rotate\": 0,\n",
       "                \"interval\": \"auto\",\n",
       "                \"margin\": 8,\n",
       "                \"textStyle\": {\n",
       "                    \"fontSize\": 18,\n",
       "                    \"color\": \"#000\"\n",
       "                }\n",
       "            },\n",
       "            \"axisTick\": {\n",
       "                \"alignWithLabel\": false\n",
       "            },\n",
       "            \"inverse\": false,\n",
       "            \"position\": null,\n",
       "            \"boundaryGap\": true,\n",
       "            \"min\": null,\n",
       "            \"max\": null,\n",
       "            \"splitLine\": {\n",
       "                \"show\": true\n",
       "            },\n",
       "            \"type\": \"value\"\n",
       "        }\n",
       "    ],\n",
       "    \"color\": [\n",
       "        \"#130f40\",\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\",\n",
       "        \"#f6f5ec\"\n",
       "    ]\n",
       "};\n",
       "myChart_adf3c2c78d3a4c76b446452267e44831.setOption(option_adf3c2c78d3a4c76b446452267e44831);\n",
       "\n",
       "    });\n",
       "</script>\n"
      ],
      "text/plain": [
       "<pyecharts.charts.bar.Bar at 0x11193c7f0>"
      ]
     },
     "execution_count": 188,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 低分评论的观众等级比例\n",
    "level_low = data.loc[data['score']<5, 'userLevel'].value_counts().sort_index()\n",
    "bar = Bar(\"《流浪地球》低分评论的观众等级\", width=700)\n",
    "bar.add(\"\", level_low.index, level_low.values, is_stack=True, is_label_show=True,\n",
    "       bar_category_gap='40%', label_color = ['#130f40'],\n",
    "       legend_text_size=18,xaxis_label_textsize=18,yaxis_label_textsize=18)\n",
    "bar"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##### 6. 高低分跟哪位演员有关？"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 198,
   "metadata": {},
   "outputs": [],
   "source": [
    "mapping = {'liucixin':'刘慈欣|大刘', 'guofan':'郭帆', 'quchuxiao':'屈楚萧|刘启|户口', 'wujing':'吴京|刘培强', \n",
    "           'liguangjie':'李光洁|王磊', 'wumengda':'吴孟达|达叔|韩子昂', 'zhaojinmai':'赵今麦|韩朵朵'}\n",
    "for key, value in mapping.items():\n",
    "    data[key] = data['content'].str.contains(value)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 204,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "liguangjie     171\n",
       "guofan         272\n",
       "zhaojinmai     377\n",
       "wumengda       477\n",
       "quchuxiao      833\n",
       "liucixin      3122\n",
       "wujing        5351\n",
       "dtype: int64"
      ]
     },
     "execution_count": 204,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 总体提及次数\n",
    "staff_count = pd.Series({key: data.loc[data[key], 'score'].count() for key in mapping.keys()}).sort_values()\n",
    "staff_count"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 205,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts': '/nbextensions/echarts/echarts.min'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "    <div id=\"78c4d439c599447fa59b807c46d121a8\" style=\"width:700px;height:400px;\"></div>\n",
       "\n",
       "\n",
       "<script>\n",
       "    require(['echarts'], function(echarts) {\n",
       "        \n",
       "var myChart_78c4d439c599447fa59b807c46d121a8 = echarts.init(document.getElementById('78c4d439c599447fa59b807c46d121a8'), null, {renderer: 'canvas'});\n",
       "var option_78c4d439c599447fa59b807c46d121a8 = {\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"text\": \"\\u300a\\u6d41\\u6d6a\\u5730\\u7403\\u300b\\u6f14\\u804c\\u5458\\u603b\\u4f53\\u63d0\\u53ca\\u6b21\\u6570\",\n",
       "            \"subtext\": \"\",\n",
       "            \"left\": \"auto\",\n",
       "            \"top\": \"auto\",\n",
       "            \"textStyle\": {\n",
       "                \"color\": \"#000\",\n",
       "                \"fontSize\": 18\n",
       "            },\n",
       "            \"subtextStyle\": {\n",
       "                \"color\": \"#aaa\",\n",
       "                \"fontSize\": 12\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"toolbox\": {\n",
       "        \"show\": true,\n",
       "        \"orient\": \"vertical\",\n",
       "        \"left\": \"95%\",\n",
       "        \"top\": \"center\",\n",
       "        \"feature\": {\n",
       "            \"saveAsImage\": {\n",
       "                \"show\": true,\n",
       "                \"title\": \"\\u4e0b\\u8f7d\\u56fe\\u7247\"\n",
       "            },\n",
       "            \"restore\": {\n",
       "                \"show\": true\n",
       "            },\n",
       "            \"dataView\": {\n",
       "                \"show\": true\n",
       "            }\n",
       "        }\n",
       "    },\n",
       "    \"series_id\": 5417912,\n",
       "    \"tooltip\": {\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"formatter\": null,\n",
       "        \"textStyle\": {\n",
       "            \"color\": \"#fff\",\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"backgroundColor\": \"rgba(50,50,50,0.7)\",\n",
       "        \"borderColor\": \"#333\",\n",
       "        \"borderWidth\": 0\n",
       "    },\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"bar\",\n",
       "            \"name\": \"\",\n",
       "            \"data\": [\n",
       "                171.0,\n",
       "                272.0,\n",
       "                377.0,\n",
       "                477.0,\n",
       "                833.0,\n",
       "                3122.0,\n",
       "                5351.0\n",
       "            ],\n",
       "            \"stack\": \"stack_5417912\",\n",
       "            \"barCategoryGap\": \"60%\",\n",
       "            \"label\": {\n",
       "                \"normal\": {\n",
       "                    \"show\": true,\n",
       "                    \"position\": \"top\",\n",
       "                    \"textStyle\": {\n",
       "                        \"color\": \"#000\",\n",
       "                        \"fontSize\": 12\n",
       "                    },\n",
       "                    \"formatter\": null\n",
       "                },\n",
       "                \"emphasis\": {\n",
       "                    \"show\": true,\n",
       "                    \"position\": null,\n",
       "                    \"textStyle\": {\n",
       "                        \"color\": \"#fff\",\n",
       "                        \"fontSize\": 12\n",
       "                    }\n",
       "                }\n",
       "            },\n",
       "            \"markPoint\": {\n",
       "                \"data\": []\n",
       "            },\n",
       "            \"markLine\": {\n",
       "                \"data\": []\n",
       "            },\n",
       "            \"seriesId\": 5417912\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [\n",
       "                \"\"\n",
       "            ],\n",
       "            \"selectedMode\": \"multiple\",\n",
       "            \"show\": true,\n",
       "            \"left\": \"center\",\n",
       "            \"top\": \"top\",\n",
       "            \"orient\": \"horizontal\",\n",
       "            \"textStyle\": {\n",
       "                \"fontSize\": 18,\n",
       "                \"color\": \"#333\"\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"backgroundColor\": \"#fff\",\n",
       "    \"xAxis\": [\n",
       "        {\n",
       "            \"name\": \"\",\n",
       "            \"show\": true,\n",
       "            \"nameLocation\": \"middle\",\n",
       "            \"nameGap\": 25,\n",
       "            \"nameTextStyle\": {\n",
       "                \"fontSize\": 14\n",
       "            },\n",
       "            \"axisLabel\": {\n",
       "                \"interval\": \"auto\",\n",
       "                \"rotate\": 0,\n",
       "                \"margin\": 8,\n",
       "                \"textStyle\": {\n",
       "                    \"fontSize\": 18,\n",
       "                    \"color\": \"#000\"\n",
       "                }\n",
       "            },\n",
       "            \"axisTick\": {\n",
       "                \"alignWithLabel\": false\n",
       "            },\n",
       "            \"inverse\": false,\n",
       "            \"position\": null,\n",
       "            \"boundaryGap\": true,\n",
       "            \"min\": null,\n",
       "            \"max\": null,\n",
       "            \"data\": [\n",
       "                \"\\u674e\\u5149\\u6d01\",\n",
       "                \"\\u90ed\\u5e06\",\n",
       "                \"\\u8d75\\u4eca\\u9ea6\",\n",
       "                \"\\u5434\\u5b5f\\u8fbe\",\n",
       "                \"\\u5c48\\u695a\\u8427\",\n",
       "                \"\\u5218\\u6148\\u6b23\",\n",
       "                \"\\u5434\\u4eac\"\n",
       "            ],\n",
       "            \"type\": \"category\"\n",
       "        }\n",
       "    ],\n",
       "    \"yAxis\": [\n",
       "        {\n",
       "            \"name\": \"\",\n",
       "            \"show\": true,\n",
       "            \"nameLocation\": \"middle\",\n",
       "            \"nameGap\": 25,\n",
       "            \"nameTextStyle\": {\n",
       "                \"fontSize\": 14\n",
       "            },\n",
       "            \"axisLabel\": {\n",
       "                \"formatter\": \"{value} \",\n",
       "                \"rotate\": 0,\n",
       "                \"interval\": \"auto\",\n",
       "                \"margin\": 8,\n",
       "                \"textStyle\": {\n",
       "                    \"fontSize\": 18,\n",
       "                    \"color\": \"#000\"\n",
       "                }\n",
       "            },\n",
       "            \"axisTick\": {\n",
       "                \"alignWithLabel\": false\n",
       "            },\n",
       "            \"inverse\": false,\n",
       "            \"position\": null,\n",
       "            \"boundaryGap\": true,\n",
       "            \"min\": null,\n",
       "            \"max\": null,\n",
       "            \"splitLine\": {\n",
       "                \"show\": true\n",
       "            },\n",
       "            \"type\": \"value\"\n",
       "        }\n",
       "    ],\n",
       "    \"color\": [\n",
       "        \"#130f40\",\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\",\n",
       "        \"#f6f5ec\"\n",
       "    ]\n",
       "};\n",
       "myChart_78c4d439c599447fa59b807c46d121a8.setOption(option_78c4d439c599447fa59b807c46d121a8);\n",
       "\n",
       "    });\n",
       "</script>\n"
      ],
      "text/plain": [
       "<pyecharts.charts.bar.Bar at 0x112404cf8>"
      ]
     },
     "execution_count": 205,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "bar = Bar(\"《流浪地球》演职员总体提及次数\", width=700)\n",
    "bar.add(\"\", ['李光洁','郭帆','赵今麦','吴孟达','屈楚萧','刘慈欣','吴京'], staff_count.values, is_stack=True, is_label_show=True,\n",
    "       bar_category_gap='60%', label_color = ['#130f40'],\n",
    "       legend_text_size=18,xaxis_label_textsize=18,yaxis_label_textsize=18)\n",
    "bar"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 215,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "zhaojinmai    8.636605\n",
       "wumengda      8.779874\n",
       "wujing        9.003738\n",
       "quchuxiao     9.018007\n",
       "liguangjie    9.134503\n",
       "liucixin      9.480782\n",
       "guofan        9.658088\n",
       "dtype: float64"
      ]
     },
     "execution_count": 215,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "average_score = pd.Series({key: data.loc[data[key], 'score'].mean() for key in mapping.keys()}).sort_values()\n",
    "average_score"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 219,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts': '/nbextensions/echarts/echarts.min'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "    <div id=\"5bc35121c9a74bb19b63af376bf7d74b\" style=\"width:700px;height:400px;\"></div>\n",
       "\n",
       "\n",
       "<script>\n",
       "    require(['echarts'], function(echarts) {\n",
       "        \n",
       "var myChart_5bc35121c9a74bb19b63af376bf7d74b = echarts.init(document.getElementById('5bc35121c9a74bb19b63af376bf7d74b'), null, {renderer: 'canvas'});\n",
       "var option_5bc35121c9a74bb19b63af376bf7d74b = {\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"text\": \"\\u300a\\u6d41\\u6d6a\\u5730\\u7403\\u300b\\u6f14\\u804c\\u5458\\u5e73\\u5747\\u5206\",\n",
       "            \"subtext\": \"\",\n",
       "            \"left\": \"auto\",\n",
       "            \"top\": \"auto\",\n",
       "            \"textStyle\": {\n",
       "                \"color\": \"#000\",\n",
       "                \"fontSize\": 18\n",
       "            },\n",
       "            \"subtextStyle\": {\n",
       "                \"color\": \"#aaa\",\n",
       "                \"fontSize\": 12\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"toolbox\": {\n",
       "        \"show\": true,\n",
       "        \"orient\": \"vertical\",\n",
       "        \"left\": \"95%\",\n",
       "        \"top\": \"center\",\n",
       "        \"feature\": {\n",
       "            \"saveAsImage\": {\n",
       "                \"show\": true,\n",
       "                \"title\": \"\\u4e0b\\u8f7d\\u56fe\\u7247\"\n",
       "            },\n",
       "            \"restore\": {\n",
       "                \"show\": true\n",
       "            },\n",
       "            \"dataView\": {\n",
       "                \"show\": true\n",
       "            }\n",
       "        }\n",
       "    },\n",
       "    \"series_id\": 5755097,\n",
       "    \"tooltip\": {\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"formatter\": null,\n",
       "        \"textStyle\": {\n",
       "            \"color\": \"#fff\",\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"backgroundColor\": \"rgba(50,50,50,0.7)\",\n",
       "        \"borderColor\": \"#333\",\n",
       "        \"borderWidth\": 0\n",
       "    },\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"bar\",\n",
       "            \"name\": \"\",\n",
       "            \"data\": [\n",
       "                8.64,\n",
       "                8.78,\n",
       "                9.0,\n",
       "                9.02,\n",
       "                9.13,\n",
       "                9.48,\n",
       "                9.66\n",
       "            ],\n",
       "            \"stack\": \"stack_5755097\",\n",
       "            \"barCategoryGap\": \"60%\",\n",
       "            \"label\": {\n",
       "                \"normal\": {\n",
       "                    \"show\": true,\n",
       "                    \"position\": \"top\",\n",
       "                    \"textStyle\": {\n",
       "                        \"color\": \"#000\",\n",
       "                        \"fontSize\": 12\n",
       "                    },\n",
       "                    \"formatter\": null\n",
       "                },\n",
       "                \"emphasis\": {\n",
       "                    \"show\": true,\n",
       "                    \"position\": null,\n",
       "                    \"textStyle\": {\n",
       "                        \"color\": \"#fff\",\n",
       "                        \"fontSize\": 12\n",
       "                    }\n",
       "                }\n",
       "            },\n",
       "            \"markPoint\": {\n",
       "                \"data\": []\n",
       "            },\n",
       "            \"markLine\": {\n",
       "                \"data\": []\n",
       "            },\n",
       "            \"seriesId\": 5755097\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [\n",
       "                \"\"\n",
       "            ],\n",
       "            \"selectedMode\": \"multiple\",\n",
       "            \"show\": true,\n",
       "            \"left\": \"center\",\n",
       "            \"top\": \"top\",\n",
       "            \"orient\": \"horizontal\",\n",
       "            \"textStyle\": {\n",
       "                \"fontSize\": 18,\n",
       "                \"color\": \"#333\"\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"backgroundColor\": \"#fff\",\n",
       "    \"xAxis\": [\n",
       "        {\n",
       "            \"name\": \"\",\n",
       "            \"show\": true,\n",
       "            \"nameLocation\": \"middle\",\n",
       "            \"nameGap\": 25,\n",
       "            \"nameTextStyle\": {\n",
       "                \"fontSize\": 14\n",
       "            },\n",
       "            \"axisLabel\": {\n",
       "                \"interval\": \"auto\",\n",
       "                \"rotate\": 0,\n",
       "                \"margin\": 8,\n",
       "                \"textStyle\": {\n",
       "                    \"fontSize\": 18,\n",
       "                    \"color\": \"#000\"\n",
       "                }\n",
       "            },\n",
       "            \"axisTick\": {\n",
       "                \"alignWithLabel\": false\n",
       "            },\n",
       "            \"inverse\": false,\n",
       "            \"position\": null,\n",
       "            \"boundaryGap\": true,\n",
       "            \"min\": null,\n",
       "            \"max\": null,\n",
       "            \"data\": [\n",
       "                \"\\u8d75\\u4eca\\u9ea6\",\n",
       "                \"\\u5434\\u5b5f\\u8fbe\",\n",
       "                \"\\u5434\\u4eac\",\n",
       "                \"\\u5c48\\u695a\\u8427\",\n",
       "                \"\\u674e\\u5149\\u6d01\",\n",
       "                \"\\u5218\\u6148\\u6b23\",\n",
       "                \"\\u90ed\\u5e06\"\n",
       "            ],\n",
       "            \"type\": \"category\"\n",
       "        }\n",
       "    ],\n",
       "    \"yAxis\": [\n",
       "        {\n",
       "            \"name\": \"\",\n",
       "            \"show\": true,\n",
       "            \"nameLocation\": \"middle\",\n",
       "            \"nameGap\": 25,\n",
       "            \"nameTextStyle\": {\n",
       "                \"fontSize\": 14\n",
       "            },\n",
       "            \"axisLabel\": {\n",
       "                \"formatter\": \"{value} \",\n",
       "                \"rotate\": 0,\n",
       "                \"interval\": \"auto\",\n",
       "                \"margin\": 8,\n",
       "                \"textStyle\": {\n",
       "                    \"fontSize\": 18,\n",
       "                    \"color\": \"#000\"\n",
       "                }\n",
       "            },\n",
       "            \"axisTick\": {\n",
       "                \"alignWithLabel\": false\n",
       "            },\n",
       "            \"inverse\": false,\n",
       "            \"position\": null,\n",
       "            \"boundaryGap\": true,\n",
       "            \"min\": null,\n",
       "            \"max\": null,\n",
       "            \"splitLine\": {\n",
       "                \"show\": true\n",
       "            },\n",
       "            \"type\": \"value\"\n",
       "        }\n",
       "    ],\n",
       "    \"color\": [\n",
       "        \"#130f40\",\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\",\n",
       "        \"#f6f5ec\"\n",
       "    ]\n",
       "};\n",
       "myChart_5bc35121c9a74bb19b63af376bf7d74b.setOption(option_5bc35121c9a74bb19b63af376bf7d74b);\n",
       "\n",
       "    });\n",
       "</script>\n"
      ],
      "text/plain": [
       "<pyecharts.charts.bar.Bar at 0x1124d75c0>"
      ]
     },
     "execution_count": 219,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "bar = Bar(\"《流浪地球》演职员平均分\", width=700)\n",
    "bar.add(\"\", ['赵今麦','吴孟达','吴京','屈楚萧','李光洁','刘慈欣','郭帆'], np.round(average_score.values,2), is_stack=True, is_label_show=True,\n",
    "       bar_category_gap='60%', label_color = ['#130f40'],\n",
    "       legend_text_size=18,xaxis_label_textsize=18,yaxis_label_textsize=18)\n",
    "bar"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 220,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "guofan          3\n",
       "liguangjie      4\n",
       "zhaojinmai     14\n",
       "wumengda       29\n",
       "quchuxiao      30\n",
       "liucixin       36\n",
       "wujing        305\n",
       "dtype: int64"
      ]
     },
     "execution_count": 220,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "staff_count_low = pd.Series({key: data.loc[data[key]&(data['score']<5), 'score'].count() for key in mapping.keys()}).sort_values()\n",
    "staff_count_low"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 231,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "guofan        1.10\n",
       "liucixin      1.15\n",
       "liguangjie    2.34\n",
       "quchuxiao     3.60\n",
       "zhaojinmai    3.71\n",
       "wujing        5.70\n",
       "wumengda      6.08\n",
       "dtype: float64"
      ]
     },
     "execution_count": 231,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "staff_count_pct = np.round(staff_count_low/staff_count*100, 2).sort_values()\n",
    "staff_count_pct"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 233,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts': '/nbextensions/echarts/echarts.min'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "    <div id=\"a6d91db678304982b1d654b6a5ad8206\" style=\"width:700px;height:400px;\"></div>\n",
       "\n",
       "\n",
       "<script>\n",
       "    require(['echarts'], function(echarts) {\n",
       "        \n",
       "var myChart_a6d91db678304982b1d654b6a5ad8206 = echarts.init(document.getElementById('a6d91db678304982b1d654b6a5ad8206'), null, {renderer: 'canvas'});\n",
       "var option_a6d91db678304982b1d654b6a5ad8206 = {\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"text\": \"\\u300a\\u6d41\\u6d6a\\u5730\\u7403\\u300b\\u6f14\\u804c\\u5458\\u4f4e\\u5206\\u8bc4\\u8bba\\u63d0\\u53ca\\u767e\\u5206\\u6bd4\",\n",
       "            \"subtext\": \"\",\n",
       "            \"left\": \"auto\",\n",
       "            \"top\": \"auto\",\n",
       "            \"textStyle\": {\n",
       "                \"color\": \"#000\",\n",
       "                \"fontSize\": 18\n",
       "            },\n",
       "            \"subtextStyle\": {\n",
       "                \"color\": \"#aaa\",\n",
       "                \"fontSize\": 12\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"toolbox\": {\n",
       "        \"show\": true,\n",
       "        \"orient\": \"vertical\",\n",
       "        \"left\": \"95%\",\n",
       "        \"top\": \"center\",\n",
       "        \"feature\": {\n",
       "            \"saveAsImage\": {\n",
       "                \"show\": true,\n",
       "                \"title\": \"\\u4e0b\\u8f7d\\u56fe\\u7247\"\n",
       "            },\n",
       "            \"restore\": {\n",
       "                \"show\": true\n",
       "            },\n",
       "            \"dataView\": {\n",
       "                \"show\": true\n",
       "            }\n",
       "        }\n",
       "    },\n",
       "    \"series_id\": 3501106,\n",
       "    \"tooltip\": {\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"formatter\": null,\n",
       "        \"textStyle\": {\n",
       "            \"color\": \"#fff\",\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"backgroundColor\": \"rgba(50,50,50,0.7)\",\n",
       "        \"borderColor\": \"#333\",\n",
       "        \"borderWidth\": 0\n",
       "    },\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"bar\",\n",
       "            \"name\": \"\",\n",
       "            \"data\": [\n",
       "                1.1,\n",
       "                1.15,\n",
       "                2.34,\n",
       "                3.6,\n",
       "                3.71,\n",
       "                5.7,\n",
       "                6.08\n",
       "            ],\n",
       "            \"stack\": \"stack_3501106\",\n",
       "            \"barCategoryGap\": \"60%\",\n",
       "            \"label\": {\n",
       "                \"normal\": {\n",
       "                    \"show\": true,\n",
       "                    \"position\": \"top\",\n",
       "                    \"textStyle\": {\n",
       "                        \"color\": \"#000\",\n",
       "                        \"fontSize\": 12\n",
       "                    },\n",
       "                    \"formatter\": null\n",
       "                },\n",
       "                \"emphasis\": {\n",
       "                    \"show\": true,\n",
       "                    \"position\": null,\n",
       "                    \"textStyle\": {\n",
       "                        \"color\": \"#fff\",\n",
       "                        \"fontSize\": 12\n",
       "                    }\n",
       "                }\n",
       "            },\n",
       "            \"markPoint\": {\n",
       "                \"data\": []\n",
       "            },\n",
       "            \"markLine\": {\n",
       "                \"data\": []\n",
       "            },\n",
       "            \"seriesId\": 3501106\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [\n",
       "                \"\"\n",
       "            ],\n",
       "            \"selectedMode\": \"multiple\",\n",
       "            \"show\": true,\n",
       "            \"left\": \"center\",\n",
       "            \"top\": \"top\",\n",
       "            \"orient\": \"horizontal\",\n",
       "            \"textStyle\": {\n",
       "                \"fontSize\": 18,\n",
       "                \"color\": \"#333\"\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"backgroundColor\": \"#fff\",\n",
       "    \"xAxis\": [\n",
       "        {\n",
       "            \"name\": \"\",\n",
       "            \"show\": true,\n",
       "            \"nameLocation\": \"middle\",\n",
       "            \"nameGap\": 25,\n",
       "            \"nameTextStyle\": {\n",
       "                \"fontSize\": 14\n",
       "            },\n",
       "            \"axisLabel\": {\n",
       "                \"interval\": \"auto\",\n",
       "                \"rotate\": 0,\n",
       "                \"margin\": 8,\n",
       "                \"textStyle\": {\n",
       "                    \"fontSize\": 18,\n",
       "                    \"color\": \"#000\"\n",
       "                }\n",
       "            },\n",
       "            \"axisTick\": {\n",
       "                \"alignWithLabel\": false\n",
       "            },\n",
       "            \"inverse\": false,\n",
       "            \"position\": null,\n",
       "            \"boundaryGap\": true,\n",
       "            \"min\": null,\n",
       "            \"max\": null,\n",
       "            \"data\": [\n",
       "                \"\\u90ed\\u5e06\",\n",
       "                \"\\u5218\\u6148\\u6b23\",\n",
       "                \"\\u674e\\u5149\\u6d01\",\n",
       "                \"\\u5c48\\u695a\\u8427\",\n",
       "                \"\\u8d75\\u4eca\\u9ea6\",\n",
       "                \"\\u5434\\u4eac\",\n",
       "                \"\\u5434\\u5b5f\\u8fbe\"\n",
       "            ],\n",
       "            \"type\": \"category\"\n",
       "        }\n",
       "    ],\n",
       "    \"yAxis\": [\n",
       "        {\n",
       "            \"name\": \"\",\n",
       "            \"show\": true,\n",
       "            \"nameLocation\": \"middle\",\n",
       "            \"nameGap\": 25,\n",
       "            \"nameTextStyle\": {\n",
       "                \"fontSize\": 14\n",
       "            },\n",
       "            \"axisLabel\": {\n",
       "                \"formatter\": \"{value} \",\n",
       "                \"rotate\": 0,\n",
       "                \"interval\": \"auto\",\n",
       "                \"margin\": 8,\n",
       "                \"textStyle\": {\n",
       "                    \"fontSize\": 18,\n",
       "                    \"color\": \"#000\"\n",
       "                }\n",
       "            },\n",
       "            \"axisTick\": {\n",
       "                \"alignWithLabel\": false\n",
       "            },\n",
       "            \"inverse\": false,\n",
       "            \"position\": null,\n",
       "            \"boundaryGap\": true,\n",
       "            \"min\": null,\n",
       "            \"max\": null,\n",
       "            \"splitLine\": {\n",
       "                \"show\": true\n",
       "            },\n",
       "            \"type\": \"value\"\n",
       "        }\n",
       "    ],\n",
       "    \"color\": [\n",
       "        \"#130f40\",\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\",\n",
       "        \"#f6f5ec\"\n",
       "    ]\n",
       "};\n",
       "myChart_a6d91db678304982b1d654b6a5ad8206.setOption(option_a6d91db678304982b1d654b6a5ad8206);\n",
       "\n",
       "    });\n",
       "</script>\n"
      ],
      "text/plain": [
       "<pyecharts.charts.bar.Bar at 0x112399828>"
      ]
     },
     "execution_count": 233,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "bar = Bar(\"《流浪地球》演职员低分评论提及百分比\", width=700)\n",
    "bar.add(\"\", ['郭帆','刘慈欣','李光洁','屈楚萧','赵今麦','吴京','吴孟达'], staff_count_pct.values, is_stack=True, is_label_show=True,\n",
    "       bar_category_gap='60%', label_color = ['#130f40'],\n",
    "       legend_text_size=18,xaxis_label_textsize=18,yaxis_label_textsize=18)\n",
    "bar"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 229,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>content</th>\n",
       "      <th>gender</th>\n",
       "      <th>id</th>\n",
       "      <th>nick</th>\n",
       "      <th>replyCount</th>\n",
       "      <th>score</th>\n",
       "      <th>time</th>\n",
       "      <th>upCount</th>\n",
       "      <th>userId</th>\n",
       "      <th>userLevel</th>\n",
       "      <th>liucixin</th>\n",
       "      <th>guofan</th>\n",
       "      <th>quchuxiao</th>\n",
       "      <th>wujing</th>\n",
       "      <th>liguangjie</th>\n",
       "      <th>wumengda</th>\n",
       "      <th>zhaojinmai</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>time</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>2019-02-05 14:11:00</th>\n",
       "      <td>可惜了60+大洋，达叔的演技是唯一的亮点，小鲜肉们稚嫩且乏味的演技（约等于0.1）好无聊，和...</td>\n",
       "      <td>1</td>\n",
       "      <td>1053902705</td>\n",
       "      <td>熊晓军［德恒律师］</td>\n",
       "      <td>13</td>\n",
       "      <td>1</td>\n",
       "      <td>2019-02-05 14:11:00</td>\n",
       "      <td>42</td>\n",
       "      <td>1154499307</td>\n",
       "      <td>5</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>True</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-02-11 02:14:00</th>\n",
       "      <td>真的，这一分我都是给的吴孟达和雷佳音的，剩下的真的不能多给了，电影，最基本的是故事情节，一味...</td>\n",
       "      <td>2</td>\n",
       "      <td>1056402038</td>\n",
       "      <td>林艾G</td>\n",
       "      <td>52</td>\n",
       "      <td>1</td>\n",
       "      <td>2019-02-11 02:14:00</td>\n",
       "      <td>40</td>\n",
       "      <td>63455639</td>\n",
       "      <td>3</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>True</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-02-08 04:46:00</th>\n",
       "      <td>主人公太扯了，三观不正，净瞎拍，拿着吴京吴孟达做幌子，真浪费我一百大洋。这片子也就骗骗小孩能...</td>\n",
       "      <td>1</td>\n",
       "      <td>1055139154</td>\n",
       "      <td>博爱永恒</td>\n",
       "      <td>11</td>\n",
       "      <td>3</td>\n",
       "      <td>2019-02-08 04:46:00</td>\n",
       "      <td>39</td>\n",
       "      <td>53086905</td>\n",
       "      <td>2</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>True</td>\n",
       "      <td>False</td>\n",
       "      <td>True</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-02-09 04:33:00</th>\n",
       "      <td>也别给半星了，剧情太烂，情节不好，故事不合理，尤其最后爆炸，还能爆炸5000公里，飞船都让你...</td>\n",
       "      <td>1</td>\n",
       "      <td>1055580599</td>\n",
       "      <td>闹闹先生丶丶</td>\n",
       "      <td>18</td>\n",
       "      <td>2</td>\n",
       "      <td>2019-02-09 04:33:00</td>\n",
       "      <td>31</td>\n",
       "      <td>173755020</td>\n",
       "      <td>3</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>True</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-02-07 10:19:00</th>\n",
       "      <td>台词设定太尴尬，强行煽情，那个外国人设定最恶心，强行设定的人物，吴京，吴孟达只是客串，还有那...</td>\n",
       "      <td>0</td>\n",
       "      <td>1054828448</td>\n",
       "      <td>A_啊杰</td>\n",
       "      <td>7</td>\n",
       "      <td>1</td>\n",
       "      <td>2019-02-07 10:19:00</td>\n",
       "      <td>28</td>\n",
       "      <td>1033874459</td>\n",
       "      <td>4</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>True</td>\n",
       "      <td>False</td>\n",
       "      <td>True</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                                               content  \\\n",
       "time                                                                     \n",
       "2019-02-05 14:11:00  可惜了60+大洋，达叔的演技是唯一的亮点，小鲜肉们稚嫩且乏味的演技（约等于0.1）好无聊，和...   \n",
       "2019-02-11 02:14:00  真的，这一分我都是给的吴孟达和雷佳音的，剩下的真的不能多给了，电影，最基本的是故事情节，一味...   \n",
       "2019-02-08 04:46:00  主人公太扯了，三观不正，净瞎拍，拿着吴京吴孟达做幌子，真浪费我一百大洋。这片子也就骗骗小孩能...   \n",
       "2019-02-09 04:33:00  也别给半星了，剧情太烂，情节不好，故事不合理，尤其最后爆炸，还能爆炸5000公里，飞船都让你...   \n",
       "2019-02-07 10:19:00  台词设定太尴尬，强行煽情，那个外国人设定最恶心，强行设定的人物，吴京，吴孟达只是客串，还有那...   \n",
       "\n",
       "                     gender          id       nick  replyCount  score  \\\n",
       "time                                                                    \n",
       "2019-02-05 14:11:00       1  1053902705  熊晓军［德恒律师］          13      1   \n",
       "2019-02-11 02:14:00       2  1056402038        林艾G          52      1   \n",
       "2019-02-08 04:46:00       1  1055139154       博爱永恒          11      3   \n",
       "2019-02-09 04:33:00       1  1055580599     闹闹先生丶丶          18      2   \n",
       "2019-02-07 10:19:00       0  1054828448       A_啊杰           7      1   \n",
       "\n",
       "                                   time  upCount      userId  userLevel  \\\n",
       "time                                                                      \n",
       "2019-02-05 14:11:00 2019-02-05 14:11:00       42  1154499307          5   \n",
       "2019-02-11 02:14:00 2019-02-11 02:14:00       40    63455639          3   \n",
       "2019-02-08 04:46:00 2019-02-08 04:46:00       39    53086905          2   \n",
       "2019-02-09 04:33:00 2019-02-09 04:33:00       31   173755020          3   \n",
       "2019-02-07 10:19:00 2019-02-07 10:19:00       28  1033874459          4   \n",
       "\n",
       "                     liucixin  guofan  quchuxiao  wujing  liguangjie  \\\n",
       "time                                                                   \n",
       "2019-02-05 14:11:00     False   False      False   False       False   \n",
       "2019-02-11 02:14:00     False   False      False   False       False   \n",
       "2019-02-08 04:46:00     False   False      False    True       False   \n",
       "2019-02-09 04:33:00     False   False      False   False       False   \n",
       "2019-02-07 10:19:00     False   False      False    True       False   \n",
       "\n",
       "                     wumengda  zhaojinmai  \n",
       "time                                       \n",
       "2019-02-05 14:11:00      True       False  \n",
       "2019-02-11 02:14:00      True       False  \n",
       "2019-02-08 04:46:00      True       False  \n",
       "2019-02-09 04:33:00      True       False  \n",
       "2019-02-07 10:19:00      True       False  "
      ]
     },
     "execution_count": 229,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data[data['wumengda']&(data['score']<5)].nlargest(5, 'upCount')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 236,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "可惜了60+大洋，达叔的演技是唯一的亮点，小鲜肉们稚嫩且乏味的演技（约等于0.1）好无聊，和看昨晚的春晚感觉差不多，好像喊得很大声，哭得很撕心，但就是没内容，演得太空洞。催泪不够真诚，搞笑不够认真，细节太过毛糙，整个就是一部被制作，为制作而制作的视听片，片尾曲让人无力吐槽。一个人的初一良辰就这么被拱了。\n",
      "\n",
      "真的，这一分我都是给的吴孟达和雷佳音的，剩下的真的不能多给了，电影，最基本的是故事情节，一味强调特技多么好多么好，去看科技展不就好了？真的是浪费了80块的电影票，毫无情节可言，一味地个人英雄主义，强行煽情，把观众得智商按在地上摩擦，这样的烂片是买了水军吧……垃圾！\n",
      "\n",
      "主人公太扯了，三观不正，净瞎拍，拿着吴京吴孟达做幌子，真浪费我一百大洋。这片子也就骗骗小孩能行，真的不敢恭维。\n",
      "\n",
      "也别给半星了，剧情太烂，情节不好，故事不合理，尤其最后爆炸，还能爆炸5000公里，飞船都让你开这么快了，还用的着点燃么？直接开进木星不就好了，飞船后面喷的不是火啊？送达叔一张票，卖战狼一份情，这电影真不行\n",
      "\n",
      "台词设定太尴尬，强行煽情，那个外国人设定最恶心，强行设定的人物，吴京，吴孟达只是客串，还有那人物设定，太牵强，不知道9.3分怎么来的\n",
      "\n"
     ]
    }
   ],
   "source": [
    "for i in data[data['wumengda']&(data['score']<5)].nlargest(5, 'upCount')['content']:\n",
    "    print(i+'\\n')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 234,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>content</th>\n",
       "      <th>gender</th>\n",
       "      <th>id</th>\n",
       "      <th>nick</th>\n",
       "      <th>replyCount</th>\n",
       "      <th>score</th>\n",
       "      <th>time</th>\n",
       "      <th>upCount</th>\n",
       "      <th>userId</th>\n",
       "      <th>userLevel</th>\n",
       "      <th>liucixin</th>\n",
       "      <th>guofan</th>\n",
       "      <th>quchuxiao</th>\n",
       "      <th>wujing</th>\n",
       "      <th>liguangjie</th>\n",
       "      <th>wumengda</th>\n",
       "      <th>zhaojinmai</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>time</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>2019-02-07 23:00:00</th>\n",
       "      <td>太多人给这部片高分了，我必须给低分把这部电影的评分拉低，因为他不值得9点多分，顶多值6.5分...</td>\n",
       "      <td>1</td>\n",
       "      <td>1055063063</td>\n",
       "      <td>杨某X</td>\n",
       "      <td>42</td>\n",
       "      <td>2</td>\n",
       "      <td>2019-02-07 23:00:00</td>\n",
       "      <td>95</td>\n",
       "      <td>85500030</td>\n",
       "      <td>1</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>True</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-02-06 17:21:00</th>\n",
       "      <td>逻辑非常不严密，既然定位是科幻片，起码的逻辑得有吧？\\n1.一个0.7级宇宙文明等级的星球，...</td>\n",
       "      <td>1</td>\n",
       "      <td>1054564334</td>\n",
       "      <td>团拼丶小王子</td>\n",
       "      <td>108</td>\n",
       "      <td>1</td>\n",
       "      <td>2019-02-06 17:21:00</td>\n",
       "      <td>58</td>\n",
       "      <td>8675410</td>\n",
       "      <td>3</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>True</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-02-07 03:59:00</th>\n",
       "      <td>就这样吧，特效还行，科幻部分不做评价，就人物刻画来讲已经槽点满满了！刘启就是个狂躁症患者，什...</td>\n",
       "      <td>2</td>\n",
       "      <td>1054646769</td>\n",
       "      <td>CpJ26143934</td>\n",
       "      <td>35</td>\n",
       "      <td>4</td>\n",
       "      <td>2019-02-07 03:59:00</td>\n",
       "      <td>53</td>\n",
       "      <td>91570358</td>\n",
       "      <td>2</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>True</td>\n",
       "      <td>True</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>True</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-02-07 03:22:00</th>\n",
       "      <td>开头以为是国产科幻大片，气象不凡，道具方面下了不少功夫，某些场景直追好莱坞。整体上离好莱坞还...</td>\n",
       "      <td>1</td>\n",
       "      <td>1054637652</td>\n",
       "      <td>meituanchzhh</td>\n",
       "      <td>33</td>\n",
       "      <td>1</td>\n",
       "      <td>2019-02-07 03:22:00</td>\n",
       "      <td>49</td>\n",
       "      <td>34052306</td>\n",
       "      <td>3</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>True</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-02-05 09:17:00</th>\n",
       "      <td>什么玩意儿，发动机和石头砸下来的声音从头震到尾，演技拙劣的儿女情长的片段令人作呕，吴京一副大...</td>\n",
       "      <td>0</td>\n",
       "      <td>1053645922</td>\n",
       "      <td>westbrookFMVP</td>\n",
       "      <td>36</td>\n",
       "      <td>1</td>\n",
       "      <td>2019-02-05 09:17:00</td>\n",
       "      <td>48</td>\n",
       "      <td>779520607</td>\n",
       "      <td>2</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>True</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                                               content  \\\n",
       "time                                                                     \n",
       "2019-02-07 23:00:00  太多人给这部片高分了，我必须给低分把这部电影的评分拉低，因为他不值得9点多分，顶多值6.5分...   \n",
       "2019-02-06 17:21:00  逻辑非常不严密，既然定位是科幻片，起码的逻辑得有吧？\\n1.一个0.7级宇宙文明等级的星球，...   \n",
       "2019-02-07 03:59:00  就这样吧，特效还行，科幻部分不做评价，就人物刻画来讲已经槽点满满了！刘启就是个狂躁症患者，什...   \n",
       "2019-02-07 03:22:00  开头以为是国产科幻大片，气象不凡，道具方面下了不少功夫，某些场景直追好莱坞。整体上离好莱坞还...   \n",
       "2019-02-05 09:17:00  什么玩意儿，发动机和石头砸下来的声音从头震到尾，演技拙劣的儿女情长的片段令人作呕，吴京一副大...   \n",
       "\n",
       "                     gender          id           nick  replyCount  score  \\\n",
       "time                                                                        \n",
       "2019-02-07 23:00:00       1  1055063063            杨某X          42      2   \n",
       "2019-02-06 17:21:00       1  1054564334         团拼丶小王子         108      1   \n",
       "2019-02-07 03:59:00       2  1054646769    CpJ26143934          35      4   \n",
       "2019-02-07 03:22:00       1  1054637652   meituanchzhh          33      1   \n",
       "2019-02-05 09:17:00       0  1053645922  westbrookFMVP          36      1   \n",
       "\n",
       "                                   time  upCount     userId  userLevel  \\\n",
       "time                                                                     \n",
       "2019-02-07 23:00:00 2019-02-07 23:00:00       95   85500030          1   \n",
       "2019-02-06 17:21:00 2019-02-06 17:21:00       58    8675410          3   \n",
       "2019-02-07 03:59:00 2019-02-07 03:59:00       53   91570358          2   \n",
       "2019-02-07 03:22:00 2019-02-07 03:22:00       49   34052306          3   \n",
       "2019-02-05 09:17:00 2019-02-05 09:17:00       48  779520607          2   \n",
       "\n",
       "                     liucixin  guofan  quchuxiao  wujing  liguangjie  \\\n",
       "time                                                                   \n",
       "2019-02-07 23:00:00     False   False      False    True       False   \n",
       "2019-02-06 17:21:00     False   False      False    True       False   \n",
       "2019-02-07 03:59:00     False   False       True    True       False   \n",
       "2019-02-07 03:22:00     False   False      False    True       False   \n",
       "2019-02-05 09:17:00     False   False      False    True       False   \n",
       "\n",
       "                     wumengda  zhaojinmai  \n",
       "time                                       \n",
       "2019-02-07 23:00:00     False       False  \n",
       "2019-02-06 17:21:00     False       False  \n",
       "2019-02-07 03:59:00     False        True  \n",
       "2019-02-07 03:22:00     False       False  \n",
       "2019-02-05 09:17:00     False       False  "
      ]
     },
     "execution_count": 234,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data[data['wujing']&(data['score']<5)].nlargest(5, 'upCount')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 235,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "太多人给这部片高分了，我必须给低分把这部电影的评分拉低，因为他不值得9点多分，顶多值6.5分样子，在国产片里面算不错的，剧情烂，东拉西扯的，地球你造发动机推动脱离太阳引力我也忍了，点燃木星就太扯了，点燃木星瞬间推动地球逃脱木星引力，那么大的冲击力地球生物不死绝鬼都不信！还有作为灾难科幻片，震撼人心的灾难场景基本没有，地球停海啸爆发，我一直在期待灾难爆发时刻人类逃亡的场景，但是从头到尾都没有！走到哪里都挂着国旗，又是打爱国情怀，很符合吴京蹭爱国热度的习惯，反正不会错，但是我就觉得很作！恶心！\n",
      "\n",
      "逻辑非常不严密，既然定位是科幻片，起码的逻辑得有吧？\n",
      "1.一个0.7级宇宙文明等级的星球，自己这块地的资源分配都没整明白，是哪来的能量去推着地球改变行星轨迹？\n",
      "2.点燃木星这脑洞是有多大？几十亿年有多少陨石彗星冲击都没点燃，你突发奇想放个火就能点燃了？全是氢气，是怎么点燃的？就这种气体混合比，怎么点燃的？麻烦把化学反应方程式告诉我一下。还不如说丢个炮仗上去炸一下，起码炮仗还能在无氧的环境下燃烧爆炸。\n",
      "3.就吴京这种个人英雄主义的演员拿来演这种格局庞大的科幻电影合适吗？单说人物设定，就这种人的军衔是怎么给的？是怎么选为航天员的？有没有做过心理测试？有没有做过性格评估？人类的命运最后是堵出来的？\n",
      "\n",
      "就这样吧，特效还行，科幻部分不做评价，就人物刻画来讲已经槽点满满了！刘启就是个狂躁症患者，什么都是别人的错，对着姥爷一口一个老东西，姥爷临死也没改口；韩朵朵就是一**少女，紧要关头还声情并茂朗读小作文；刘培强是我要救儿子……以为儿子死了：好，我放弃了，我听moss的回去休眠……哦！儿子没死，太好了，我要想办法，一定要救地球……🙄️🙄️🙄️\n",
      "\n",
      "开头以为是国产科幻大片，气象不凡，道具方面下了不少功夫，某些场景直追好莱坞。整体上离好莱坞还是差半个世纪。1⃣️演员。格式化表演，看不出“人”性内容，几处人物牺牲逻辑性和共鸣性不强，尤其吴京最后牺牲前一段烈士般台词，沿习战狼做派，略显矫情。2⃣️布景。感觉一直都是漫天飞雪、错杂纷乱，缺乏变化。整体风格压抑，没有情景沉入感、带入感。\n",
      "\n",
      "什么玩意儿，发动机和石头砸下来的声音从头震到尾，演技拙劣的儿女情长的片段令人作呕，吴京一副大义凛然的样子太过难受，什么中国第一部科幻，情节稀烂，特效主要靠音效，加上刻意塑造的中国式英雄，一分没得说\n",
      "\n"
     ]
    }
   ],
   "source": [
    "for i in data[data['wujing']&(data['score']<5)].nlargest(5, 'upCount')['content']:\n",
    "    print(i+'\\n')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 237,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>content</th>\n",
       "      <th>gender</th>\n",
       "      <th>id</th>\n",
       "      <th>nick</th>\n",
       "      <th>replyCount</th>\n",
       "      <th>score</th>\n",
       "      <th>time</th>\n",
       "      <th>upCount</th>\n",
       "      <th>userId</th>\n",
       "      <th>userLevel</th>\n",
       "      <th>liucixin</th>\n",
       "      <th>guofan</th>\n",
       "      <th>quchuxiao</th>\n",
       "      <th>wujing</th>\n",
       "      <th>liguangjie</th>\n",
       "      <th>wumengda</th>\n",
       "      <th>zhaojinmai</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>time</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>2019-02-07 03:59:00</th>\n",
       "      <td>就这样吧，特效还行，科幻部分不做评价，就人物刻画来讲已经槽点满满了！刘启就是个狂躁症患者，什...</td>\n",
       "      <td>2</td>\n",
       "      <td>1054646769</td>\n",
       "      <td>CpJ26143934</td>\n",
       "      <td>35</td>\n",
       "      <td>4</td>\n",
       "      <td>2019-02-07 03:59:00</td>\n",
       "      <td>53</td>\n",
       "      <td>91570358</td>\n",
       "      <td>2</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>True</td>\n",
       "      <td>True</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>True</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-02-06 15:46:00</th>\n",
       "      <td>刘慈欣《流浪地球》据说是硬科幻，设定感觉可以出一个系列，可导演和编剧讲故事的能力都差强人意，...</td>\n",
       "      <td>2</td>\n",
       "      <td>1054533126</td>\n",
       "      <td>pSU598729902</td>\n",
       "      <td>23</td>\n",
       "      <td>1</td>\n",
       "      <td>2019-02-06 15:46:00</td>\n",
       "      <td>35</td>\n",
       "      <td>1054238164</td>\n",
       "      <td>3</td>\n",
       "      <td>True</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>True</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-02-05 05:53:00</th>\n",
       "      <td>能更尴尬么？韩朵朵尴尬，刘启尴尬，演技尴尬，剧情尴尬，MOSS 反转尴尬，除了三体 再也不看...</td>\n",
       "      <td>0</td>\n",
       "      <td>1053496256</td>\n",
       "      <td>刀客谭</td>\n",
       "      <td>21</td>\n",
       "      <td>1</td>\n",
       "      <td>2019-02-05 05:53:00</td>\n",
       "      <td>33</td>\n",
       "      <td>1010202977</td>\n",
       "      <td>3</td>\n",
       "      <td>True</td>\n",
       "      <td>False</td>\n",
       "      <td>True</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>True</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-02-10 12:56:00</th>\n",
       "      <td>不感动啊…也没有满场子哭泣泣的！不过制作看得出来很精致，但独白很一般！韩朵朵喊救援时候太拖拉...</td>\n",
       "      <td>2</td>\n",
       "      <td>1056241443</td>\n",
       "      <td>崔家内小谁</td>\n",
       "      <td>0</td>\n",
       "      <td>4</td>\n",
       "      <td>2019-02-10 12:56:00</td>\n",
       "      <td>12</td>\n",
       "      <td>199632141</td>\n",
       "      <td>4</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>True</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2019-02-10 16:33:00</th>\n",
       "      <td>男权主义太重了，我真的十分讨厌吧危机关头，把女生演绎的像个傻子，赖赖唧唧的，拖后腿，最后几分...</td>\n",
       "      <td>2</td>\n",
       "      <td>1055645215</td>\n",
       "      <td>@</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>2019-02-10 16:33:00</td>\n",
       "      <td>2</td>\n",
       "      <td>1045118082</td>\n",
       "      <td>2</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>True</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                                               content  \\\n",
       "time                                                                     \n",
       "2019-02-07 03:59:00  就这样吧，特效还行，科幻部分不做评价，就人物刻画来讲已经槽点满满了！刘启就是个狂躁症患者，什...   \n",
       "2019-02-06 15:46:00  刘慈欣《流浪地球》据说是硬科幻，设定感觉可以出一个系列，可导演和编剧讲故事的能力都差强人意，...   \n",
       "2019-02-05 05:53:00  能更尴尬么？韩朵朵尴尬，刘启尴尬，演技尴尬，剧情尴尬，MOSS 反转尴尬，除了三体 再也不看...   \n",
       "2019-02-10 12:56:00  不感动啊…也没有满场子哭泣泣的！不过制作看得出来很精致，但独白很一般！韩朵朵喊救援时候太拖拉...   \n",
       "2019-02-10 16:33:00  男权主义太重了，我真的十分讨厌吧危机关头，把女生演绎的像个傻子，赖赖唧唧的，拖后腿，最后几分...   \n",
       "\n",
       "                     gender          id          nick  replyCount  score  \\\n",
       "time                                                                       \n",
       "2019-02-07 03:59:00       2  1054646769   CpJ26143934          35      4   \n",
       "2019-02-06 15:46:00       2  1054533126  pSU598729902          23      1   \n",
       "2019-02-05 05:53:00       0  1053496256           刀客谭          21      1   \n",
       "2019-02-10 12:56:00       2  1056241443         崔家内小谁           0      4   \n",
       "2019-02-10 16:33:00       2  1055645215             @           3      3   \n",
       "\n",
       "                                   time  upCount      userId  userLevel  \\\n",
       "time                                                                      \n",
       "2019-02-07 03:59:00 2019-02-07 03:59:00       53    91570358          2   \n",
       "2019-02-06 15:46:00 2019-02-06 15:46:00       35  1054238164          3   \n",
       "2019-02-05 05:53:00 2019-02-05 05:53:00       33  1010202977          3   \n",
       "2019-02-10 12:56:00 2019-02-10 12:56:00       12   199632141          4   \n",
       "2019-02-10 16:33:00 2019-02-10 16:33:00        2  1045118082          2   \n",
       "\n",
       "                     liucixin  guofan  quchuxiao  wujing  liguangjie  \\\n",
       "time                                                                   \n",
       "2019-02-07 03:59:00     False   False       True    True       False   \n",
       "2019-02-06 15:46:00      True   False      False   False       False   \n",
       "2019-02-05 05:53:00      True   False       True   False       False   \n",
       "2019-02-10 12:56:00     False   False      False   False       False   \n",
       "2019-02-10 16:33:00     False   False      False   False       False   \n",
       "\n",
       "                     wumengda  zhaojinmai  \n",
       "time                                       \n",
       "2019-02-07 03:59:00     False        True  \n",
       "2019-02-06 15:46:00     False        True  \n",
       "2019-02-05 05:53:00     False        True  \n",
       "2019-02-10 12:56:00     False        True  \n",
       "2019-02-10 16:33:00     False        True  "
      ]
     },
     "execution_count": 237,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data[data['zhaojinmai']&(data['score']<5)].nlargest(5, 'upCount')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 238,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "就这样吧，特效还行，科幻部分不做评价，就人物刻画来讲已经槽点满满了！刘启就是个狂躁症患者，什么都是别人的错，对着姥爷一口一个老东西，姥爷临死也没改口；韩朵朵就是一**少女，紧要关头还声情并茂朗读小作文；刘培强是我要救儿子……以为儿子死了：好，我放弃了，我听moss的回去休眠……哦！儿子没死，太好了，我要想办法，一定要救地球……🙄️🙄️🙄️\n",
      "\n",
      "刘慈欣《流浪地球》据说是硬科幻，设定感觉可以出一个系列，可导演和编剧讲故事的能力都差强人意，镜头语言幼稚，几乎全程在快速地晃荡，人物情感没有张力，演员功力都弱弱的，都末日了，还不咸不淡的语气。。男主对他爹的大恨是从哪儿来的？？不就是母亲放弃治疗吗？那个韩朵朵出来是干什么的？是让大家保护的“希望”化身？？强行煽情的台词让我汗毛竖起。刻意卖的末世日情怀，我不想接。狂热的拥护。\n",
      "\n",
      "原来酒带上太空舱是为了炸掉智能机器人莫斯的。。被酒燃烧前莫斯的话是经典——想让人类保持理智是一种奢望。笑岔我。\n",
      "\n",
      "看到东方明珠塔被雪冻住了我就忍不住笑，不知道老美看到纽约被炸那么多次什么心情。\n",
      "\n",
      "无知导致浪漫。\n",
      "\n",
      "\n",
      "\n",
      "能更尴尬么？韩朵朵尴尬，刘启尴尬，演技尴尬，剧情尴尬，MOSS 反转尴尬，除了三体 再也不看刘慈欣的任何电影。失望。\n",
      "\n",
      "不感动啊…也没有满场子哭泣泣的！不过制作看得出来很精致，但独白很一般！韩朵朵喊救援时候太拖拉了！我都着急了！\n",
      "\n",
      "男权主义太重了，我真的十分讨厌吧危机关头，把女生演绎的像个傻子，赖赖唧唧的，拖后腿，最后几分钟通话光听她哭了，我叫韩朵朵，麻烦你想煽情的同时，台词有点说服力可以吗？4分全给特效，编、导、演都很差\n",
      "\n"
     ]
    }
   ],
   "source": [
    "for i in data[data['zhaojinmai']&(data['score']<5)].nlargest(5, 'upCount')['content']:\n",
    "    print(i+'\\n')"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.3"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
